You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- string $val: click me
-- optional string $msg:
-- ftd.text: $val
$on-click$: ftd.set-string($a = $msg, v = I'll be called)
$on-click$ if { msg != NULL }: ftd.set-string($a = $msg, v = some other message)
$on-click$ if { msg == NULL }: ftd.set-string($a = $msg, v = some message)
$on-click$: ftd.set-string($a = $val, v = the last click event handler)
-- ftd.text: $msg
if: { msg }
Seems like the $on-click$ does not support conditionals. The above snippet will execute all the click handlers in order. You can change the order of the middle two $on-click$, the value of $msg will be equal to whatever is set by the last click handler ("some message" for the above snippet)
The text was updated successfully, but these errors were encountered:
Seems like the
$on-click$
does not support conditionals. The above snippet will execute all the click handlers in order. You can change the order of the middle two$on-click$
, the value of$msg
will be equal to whatever is set by the last click handler ("some message" for the above snippet)The text was updated successfully, but these errors were encountered: