Dialog if examples: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
seperate page with examples |
||
Line 1: | Line 1: | ||
===INPUT example with IF statement === | ===INPUT example with IF statement === | ||
<pre> | |||
first_var=1 | |||
if first_var=1 then INPUT 65, 017, 70, 24, w1, 10 | |||
</pre> | |||
will only show the input box when first_var = 1 | will only show the input box when first_var = 1 | ||
<pre> | |||
first_var=1 | |||
second_var=1 | |||
if first_var=1 then if second_var=1 then INPUT 65, 017, 70, 24, w1, 10 | |||
</pre> | |||
will only show the input box when first_var = 1 and second_var = 1 | will only show the input box when first_var = 1 and second_var = 1 | ||
===CHECK example with IF statement === | ===CHECK example with IF statement === | ||
<pre> | |||
first_var=1 | |||
if first_var=1 then CHECK 070, 044, 070, 24, "Cross", dir1, 0 | |||
</pre> | |||
will only show the check box when first_var = 1 | will only show the check box when first_var = 1 | ||
<pre> | |||
first_var=1 | |||
second_var=1 | |||
if first_var=1 then if second_var=1 then CHECK 070, 044, 070, 24, "Cross", dir1, 0 | |||
</pre> | |||
will only show the check box when first_var = 1 and second_var = 1 | will only show the check box when first_var = 1 and second_var = 1 |
Revision as of 11:42, 26 February 2025
INPUT example with IF statement
first_var=1 if first_var=1 then INPUT 65, 017, 70, 24, w1, 10
will only show the input box when first_var = 1
first_var=1 second_var=1 if first_var=1 then if second_var=1 then INPUT 65, 017, 70, 24, w1, 10
will only show the input box when first_var = 1 and second_var = 1
CHECK example with IF statement
first_var=1 if first_var=1 then CHECK 070, 044, 070, 24, "Cross", dir1, 0
will only show the check box when first_var = 1
first_var=1 second_var=1 if first_var=1 then if second_var=1 then CHECK 070, 044, 070, 24, "Cross", dir1, 0
will only show the check box when first_var = 1 and second_var = 1