Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

[If Statement] Malformed if statement in "Action" tool

Joker_Hazard
11 - Bolide

Hello Everyone. 

I am trying to put an "if statement" in the action tool, however it gives me error.

I'm pretty sure that the this statement is correct, so maybe there is another rule when trying to use it in the Action Tool.

Here is the printscreen. Does anybody knows what could be wrong?

Joker_Hazard_0-1617478182909.png


Thanks in advance!

4 REPLIES 4
BenMoss
ACE Emeritus
ACE Emeritus

You are missing ENDIF at the end of your statement.

 

Ben

BenMoss
ACE Emeritus
ACE Emeritus

And as an added tip, when using a checkbox or radio button the result is Boolean and therefore you shouldn’t need to do IF [#2] = ‘True’ THEN ...

 

You can just use IF [#2] THEN

Joker_Hazard
11 - Bolide

Ben, thanks for the reply!

It's still not working!

Joker_Hazard_0-1617549479327.png

 

 

BenMoss
ACE Emeritus
ACE Emeritus

You also need a space between if and your [#2]

Labels
Top Solution Authors