greaterThanEquals
Purpose
Greater than or equals operator >=
Description
This is true if the value of first expression is greater than or equal to the value of the second
Syntax
result = expression1 >= expression2
Arguments
result true if value of expression1 is greater than or equal to value of expression2
expression1 first expression
expression2 second expression
Example
cb = loadModel( "Kat Deak/Colin" )
pointLight( { 0.5, 1.3, 2 }, white, 4 )
setAmbientLight( { 0.5, 0.5, 0.5 } )
colin = placeObject( cb, { 0, 0, 0 }, { 1, 1, 1 } )
setCamera( { 0, 10, 10 }, { 0, 5, 0 } )
animID = 7 // the robot
animlength = animationLength( colin, animID )
animframe = 0
loop
clear()
animframe = animframe + 1 / 60
if animframe >= animlength then
animframe = 0
endIf
updateAnimation( colin, animID, animframe )
drawObjects()
printAt( 0, 0, "length: ", animlength, " frame: ", animframe )
update()
repeat
Associated Commands
equals, lessThan, greaterThan, lessThanEquals, greaterThanEquals, notEquals