I’m having a terrible time understanding how to handle passing variables (parameters?) to a procedure.
Here is my code.
\procedure get-breed(breed)
<$action-log breedName=<<breed>> />
\end get-breed
<$button actions=<<get-breed breed:"lab">> >
Choose a breed
</$button>
What I would expect from this is for the breed name (lab) to be output in the $action-log message. However this never happens. The breed variable I’m passing in doesn’t seem to be recognized at all.
What am I doing wrong? I’m very new at this so I’m sure there is some underlying TW concept I’m not getting.