Conditional Statements If - elseif – else while for
‘if, elseif, else’ If <condition is met> then do this else do this end
‘if, elseif, else’ If <condition is met> then do this elseif <other condition met> do this elseif <other condition met> do this else do this end
while The statements inside the ‘while’ loop will keep executing repeatedly till the condition is false. while <condition> //keep repeating till above condition is met . . end
while while <condition> //keep repeating . . end
for for variable = initval:endval statement ... statement end The statements inside the ‘for’ loop will be exectuted repeatedly till the variable reaches ‘endvalue’ as defined in the declaration. At each successive cycle, the variable is incremented/decremented by one unit so as to change it from the initial value to the final value progressively.
Visit more self help tutorials Pick a tutorial of your choice and browse through it at your own pace. The tutorials section is free, self-guiding and will not involve any additional support. Visit us at www.dataminingtools.net