|
|
|
|
|
If then else statements use the general form: IF <condition> THEN <condition> ELSE <condition> ENDIF Where <condition> is any legal condition outlined within this chapter. Example: The following query scans the history of the daily moves of the Nasdaq and returns the highest number of consecutive losses ever. "Final Show" returns the end result of "highestCount" which is 16 trading days in a row. The "Show" statement returns all the counts of the days as well as the Close of the Nasdaq. FINAL SHOW SHOW WHEN |