Conditional Constants

Conditions like True and False are used in calculations with conditional and logical operators and for entering properties for a graph.

Overview

The following conditions are available:
Name Value
True 1
False 0
On 1
Off 0
Back to top

Examples

'Examples of using Conditional constants

'Define some conditions
ImYoung = True;
ImShort = False;

'Test if the following is true
(ImYoung = True) And (ImShort = True)
       Ans = 0
(ImYoung = True) Or (ImShort = True)
       Ans = 1	

'Plot a graph directly without grid lines
Plot(Sin(x), GridStyle=Off)
       Plot done
Back to top

See Also

Constants, Conditional operators, Logical operators, Edit Properties