Skip to main content
Jul 11, 2019 10:27 AM UTC
Solved

Using relations

I want to put a relation which states that the:

IF STRING_LENGTH(SOME_PARAMETER)*3 is greater than 10 and less than 30

 

 

I dont understand how to put less than and greater than together

KenFarleyAnswer
Jul 11, 2019 11:03 AM UTC

Here's a link to the relation syntax stuff for operators:

PTC Relation Operators

The simple answer to your needs is the relation:

IF ( string_length ( value ) * 3 > 10 ) & ( string_length ( value ) * 3 ) < 30 )

This is typical of most computer languages, I don't know of any that let you do things like IF 10 < value < 30 because operator precedence, etc.

2 replies

KenFarleyAnswer
Jul 11, 2019 11:03 AM UTC

Here's a link to the relation syntax stuff for operators:

PTC Relation Operators

The simple answer to your needs is the relation:

IF ( string_length ( value ) * 3 > 10 ) & ( string_length ( value ) * 3 ) < 30 )

This is typical of most computer languages, I don't know of any that let you do things like IF 10 < value < 30 because operator precedence, etc.

Jul 12, 2019 3:34 AM UTC

Thanks a lot