Then: Difference between revisions
From MultiCharts
no edit summary
(Created page with "Used in combination with If to form a conditional statement that executes specific instructions if a logical expression is true. For more information see If. ==== ...") |
No edit summary |
||
Line 1: | Line 1: | ||
Used in combination with [[If]] to form a conditional statement that executes specific instructions if a logical expression is true. | Used in combination with [[If]] to form a conditional statement that executes specific instructions if a logical expression is true. | ||
== Usage == | |||
<syntaxhighlight>If E Then I</syntaxhighlight> | <syntaxhighlight>If E Then I</syntaxhighlight> | ||
Where: | Where: | ||
:'''E''' - a true/false expression. | |||
:'''I''' - conditional instructions. | |||
==== | == Notes == | ||
If | * For more information see [[If]]. | ||
== Example == | |||
If ''UpTrend'' is false then sell: | |||
<syntaxhighlight>If UpTrend=False Then Sell Next Bar Market;</syntaxhighlight> | <syntaxhighlight>If UpTrend=False Then Sell Next Bar Market;</syntaxhighlight> | ||
[[Category:Comparisons and Loops]] | [[Category:Comparisons and Loops]] |