Can anyone tell me what an (invalid expression, couldn’t extract another token) error means in cside
The code this is happening with is:
*Temp fr “a”
*If ${mc_element} = “frost”
*Set fr “a fellow”
The line cside cites as a problem is the middle one. This code is not under any choice option but that shouldn’t matter. I would appreciate anyone who could give me an idea what is wrong with this code.
The format for the mc_element
check should be as follows.
*temp fr "a"
*if (mc_element="frost")
*set fr "a fellow"
The ${variable}
command is only used to print variables within the text. For example the code
*set mc_element "frost"
The element is ${mc_element}.
would show
The element is frost.
1 Like
You could also change the () for “” in mc_element, as in
*temp fr "a"
*if "${mc_element}" = "frost"
*set fr "a fellow"
I’d advise you to put the command for caps lock, however, because this is case sensitive. So
*temp fr "a"
*if "$!!{mc_element}" = "FROST"
*set fr "a fellow"
Screenshots
If you put in your code, for example
the code would look like this
where choosing the first option would lead to
and choosing the second one would lead to
.
system
Closed
April 9, 2020, 4:10am
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.