Post

4 followers Follow
0
Avatar

Calculation syntax errors

I am trying to use 2 category fields to present a predetermind result. So if Category 1 has option A selected and Category 2 has option B selected, then the result is X

I found the Calculation Tips doc and used the If And script to do this:
if ((@Approved === "Yes") && (@Billable hours === "Yes")) {
@Hours worked;
} else {

}

However, when I fill in my tokens, I get an Script Syntax Error: Unexpected Token ILLEGAL. Attached is the actual screenshot. Can you help identify where my error is?

Chris North

Please sign in to leave a comment.

3 comments

0
Avatar

Hey Chris, 

in this case the triple = don't cause the error - remove the semicolons (you can add them again; that's because the Podio calc field is very "sensitive").
But also: as Joel recommended use double =, not triple =.

Rainer 

Rainer Grabowski 0 votes