cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Using relations

SOLVED
Alexandrite

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Using relations

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 2
Highlighted

Re: Using relations

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.

Re: Using relations

Thanks a lot