IF statement use with aritmetichal operators

:bullseye: What is your goal?

I would like to set a value based on the following if statement,

{{if(128.content + "= 10; 1; " + 128.content + “+1”)}}

:thinking: What is the problem & what have you tried?

The statement doesn’t evaluate the arithmetical operations, it feels like a string.

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

That’s because it’s a string, as

Your brackets, operators, functions, or special variables were not selected from the Variables Panel.

Try selecting it again from the Variables Panel, or type curly brackets around each special character like these {{ }} so that it ends up with a background color:

{{ ( }}
{{ / }}
{{ + }}
{{ = }}
etc.

I also suggest doing this Make Academy, as it covers selecting brackets, operators, functions, or special variables from the Variables Panel.

For more information, see:

@samliew

Hi @Dolphinstudio_Info ,

Kindly select the parenthesis from the mapping panel as shown in the screenshot and give it a try.

Let us know if you still face any issues.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation