@set foo = 4
dopusrt /argsmsgbox {$foo}
@if:$foo / @if:{$foo} / @ifset:$foo / @ifset:{$foo}
dopusrt /argsmsgbox {$foo} done
@if:else / @ifset:else
dopusrt /argsmsgbox {$foo} nope
2 messagebox 4
and 4 nope
https://docs.dopus.com/doku.php?id=reference:command_reference:command_modifier_reference
url said
@if:$foo test if a variable called "foo" has been set
i do some search and find out
https://www.gpsoft.com.au/help/opus11/Documents/Command_modifier_reference.htm
no @if
here, only @ifset:$foo - test if a variable called "foo" has been set
but still 4 nope
try more search
the global variable
@Set Glob!:rrrrandom = 4
dopusrt /argsmsgbox {$Glob!:rrrrandom}
@if:$Glob:rrrrandom
dopusrt /argsmsgbox {$Glob!:rrrrandom} done
@if:else
dopusrt /argsmsgbox {$Glob!:rrrrandom} nope
@if:common
//@Set Glob!:rrrrandom
dopusrt /argsmsgbox {$Glob!:rrrrandom} end
1st time to run it, 4, 4 nope, 4 end
.
and from 2nd time, it's all 4, 4 done, 4 end
.
if i let @Set Glob!:rrrrandom
work, and keep test, then 1st time 4, 4 done, end
. after that, all 4, 4 nope, end
.
also @ifset:
works.
i'm not sure is @hideif the same? i do test @hideif:Set DUAL=toggle
this could work, hide the button. but not sure how to use @hideif correctly.
mention this because one thread of Leo? said @hideif
only test the variable exist or not. sounds like @if:$foo
all tested in standard funtion dopus
do i miss something or completely get it wrong?
os: win 7
dopus: 13.4