true | boolean value (not false) |
Syntax | true
|
Description | A boolean (true/false) variable can be either true or false (see boolean type).
|
Example |
var passed : boolean := true var mark : int for i : 1 .. 10 get mark passed := passed and mark >= 60 end for if passed = true then put "You passed all ten subjects" end if |
Details | The line if passed=true then can be simplified to if passed then with no change to the meaning of the program.
|