You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##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 ifpassed=truethen can be simplified to ifpassedthen with no change to the meaning of the program.