Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

If statement

Programming conditional statement that, if proved true, performs a function or displays information. For example:

If X = 10 then print "X is equal to 10"

which could also be written as:

if ($x == 10) { print "X is equal to 10"; }

In the above example, if the X value was equal to 10, the program would display "X is equal to 10". Note: the above example is a general example and does not apply to any programming language. See our conditional statement dictionary definition for additional information and some basic programming examples.

  • See our MS-DOS if command page if you're looking for additional information and examples of how to use the MS-DOS if command.

Also see: Conditional expression, Else, Exists, Programming definitions

 

Index

Category:
Dictionary

Related Pages:
I - Definitions

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope