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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Using relations

sparulekar
14-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

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.

View solution in original post

2 REPLIES 2

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.

sparulekar
14-Alexandrite
(To:KenFarley)

Thanks a lot

Top Tags