Hi, is there a fuction like case in php available ?
I like to replace some strings in my node.
Example: If 1 then set field to ‘Vacation’ or if 2 then set field to ‘Sickness’ …
Any Idea ?
Thanks,
Stefan
Hi, is there a fuction like case in php available ?
I like to replace some strings in my node.
Example: If 1 then set field to ‘Vacation’ or if 2 then set field to ‘Sickness’ …
Any Idea ?
Thanks,
Stefan
Sadly there is currently no specific node to do that. You would either have to use a Function-Node and write some JavaScript or use the Switch-Node and then set the desired value after it with a Set-Node.