Skip to main content
1-Visitor
July 11, 2019
Solved

Using relations

  • July 11, 2019
  • 1 reply
  • 2339 views

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

Best answer by KenFarley

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.

1 reply

KenFarley
KenFarley21-Topaz IIAnswer
21-Topaz II
July 11, 2019

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.

1-Visitor
July 12, 2019

Thanks a lot