Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Using expression manager to customise the end message

More
2 years 1 month ago - 2 years 1 month ago #245448 by alextj
I'm new to Expression Manager, but I'm trying to customise the end message shown based on a previous answer.

I've tried writing this: 
"To complete the course enrolment {If(G02Q36.code=="cc","do this","other do this")}"

But this just shows this code on the end screen, with a red box around the 'if' and on hover says 'undefined function'. I haven't been able to find any information on what 'undefined function' means in this context.

Can anyone see where I'm going wrong?

Thanks!
Last edit: 2 years 1 month ago by alextj. Reason: tidy

Please Log in to join the conversation.

More
2 years 1 month ago #245450 by Joffm
Hi,
the error message tells you that you use a not defined function.

If you have a look here
[url] www.limesurvey.org/manual/ExpressionScri...mplemented_functions [/url]
you see that there is no implemented function "If".
The function you want to use is  "if". (lower case)

Meaning, it was just a typo on your side.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: alextj

Please Log in to join the conversation.

More
2 years 1 month ago #245466 by alextj
Thank you Joffm!
Now it works ok, I'll make sure I check everything for lower case vs mixed case, I didn't realise that had an influence.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose