Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create a new Expression or Variable

I'm having a hard time trying to find or figure out how to create a new expression or variable that helps me solve this issue.

I have a field "Purchased" that has no value or count of products purchased like 1,2,4,7,....

I want to create a new variable or expression to basically tell if Purchase is True or False. False if no value and True if >=1

Tried stuff in the script, creating expression in the list box...all to no avail and I'm stuck.

Any help is appreciated.

1 Solution

Accepted Solutions
derekjones
Creator III
Creator III

Hi Vijay

try using len function in an expression e.g.

=if(len(Purchased)>0,'TRUE','FALSE')

Hope this helps

Derek

View solution in original post

2 Replies
derekjones
Creator III
Creator III

Hi Vijay

try using len function in an expression e.g.

=if(len(Purchased)>0,'TRUE','FALSE')

Hope this helps

Derek

Not applicable
Author

Great thanks. That worked!

I was doing double quotes around True and False and it did not like that.