; True Example ; ------------ ; True is a built-in constant equal to 1. It makes flags and yes/no ; function results read naturally. Print "The value of True is "+True Print "" ; A flag set with True player_alive=True If player_alive Then Print "The player is alive." ; A function can answer a yes/no question by returning True or False If IsEven(10) Then Print "10 is even." If Not IsEven(7) Then Print "7 is odd." Print "" Print "Press any key to close the example" WaitKey End Function IsEven(n) ; Even numbers leave no remainder when divided by 2 If n Mod 2=0 Then Return True Return False End Function