Code: Select all
:set $notdeclared 10
Code: Select all
:global myfun do={
:if ([:typeof $optarg] = "nothing") do={ :set $optarg "default value"}
:return $optarg
}
Code: Select all
:put $myvariable
:set $myvariable 10
:put $myvariable
(tested on Ros 6.25 and 7.7)