In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

IF statement not working

ppatane
8 - Asteroid

Hi all,
The following statement errors out at the equal sign

 

if Left([project_code],1) = 4 then
"Firm Administration"
else
"Client Charge"
endif

 

both the projct_code field and the field I am saving to are V_String

2 REPLIES 2
binu_acs
21 - Polaris

@ppatane the 4 should be put in quotes 

 

if Left([project_code],1) = ‘4’ then
"Firm Administration"
else
"Client Charge"
endif

ppatane
8 - Asteroid

D'oh! Rookie mistake on my part.  Thanks!

Labels
Top Solution Authors