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



 

Else

Programming statement that if previous conditions are not true displays alternate information or performs alternate commands.

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

In the above example, if the X value was not equal to 10, the program would display "X is NOT equal to 10". Note: the above example is a general example and does not apply to any programming language. 

Also see: Else if, If statement, Programming definition

 

Index

Category:
Dictionary

Related Pages:
E - 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