Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

The (if:) command should be assigned to a variable or attached to a hook.

Hello,i was trying to replicate the code in this video but i keep getting "The (if:) command should be assigned to a variable or attached to a hook but i checked all the code like 3-4 times to see if it was the same and it is

Comments

  • You can get that syntax related error message if you add invalid white-space between the (if:) macro and it's associated hook.
    Correct syntax: note there is nothing between the macro and the hook.
    (if: $var is "value")[... outcome if conditional express is true ...]
    
    Invalid syntax: note the white-space between the macro and the hook.
    (if: $var is "value") [... error message is generated ...]
    
Sign In or Register to comment.