IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#58272 - 06/13/22 11:48 AM Advanced condition not returning expected results
SveyHarling Offline
OL Newbie

Registered: 05/13/22
Posts: 13
Good day,

I have this Advanced condition

=( @(435,1,2) <='27')

The data is 7_ nothing after the 7, just the number 7. I am getting a false result but I was expectiong a true result because 7 <=27. I think my condition is looking at the 7 <=2 instead of 27. What am I doing wrong.

Tx

Yves

Top
#58273 - 06/13/22 12:02 PM Re: Advanced condition not returning expected results [Re: SveyHarling]
MartinS Offline
OL Guru

Registered: 08/06/12
Posts: 142
Loc: Munich
if you're intending to do a numerical comparison you should first convert the first string to an integer, just use the strtoint() function for that. And instead of '27' use 27.


Edited by MartinS (06/13/22 12:05 PM)

Top
#58274 - 06/13/22 12:23 PM Re: Advanced condition not returning expected results [Re: SveyHarling]
SveyHarling Offline
OL Newbie

Registered: 05/13/22
Posts: 13
Tx MartinS

=( @(435,1,2) <='27')

replaced by

=(strtoint(@(435,1,2)))<=27

Returns the expected value.

Top