lessThan
Purpose
Less than operator <
Description
This is true if the value of first expression is less than the value of the second
Syntax
result = expression1 < expression2
Arguments
result true if value of expression1 is less than value of expression2
expression1 first expression
expression2 second expression
Example
hour="00"
minute="00"
second="00"
size=100.0
textsize(size)
loop
clear()
c = clock()
if c.hour < 10 then
hour= "0" + str( c.hour )
else
hour= str(c.hour)
endIf
if c.minute < 10 then
minute = "0" + str( c.minute )
else
minute=str( c.minute )
endIf
if (c.second < 10) then
second = "0" + str( c.second )
else
second = str( c.second )
endIf
now = hour + ":" + minute + ":" + second
tw = textWidth( now )
drawText( (gWidth() - tw) / 2, ( gHeight() - size ) / 2, size, white, now )
update()
repeat
Associated Commands
equals, lessThan, greaterThan, lessThanEquals, greaterThanEquals, notEquals