# How to write an expression 1<\$TY>0

## Recommended Posts

i wanna write a expression that set \$TX = ?? , and greater than 1 and smaller than 5

\$TX = N

N = ?

1<\$TX>5

how should i write in the box ?

##### Share on other sites

i wanna write a expression that set \$TX = ?? , and greater than 1 and smaller than 5

\$TX = N

N = ?

1<\$TX>5

how should i write in the box ?

Hi ghang. I guess there is many solutions to that. Here is one.

You can use an OR in a IF-statement like this example:

if( \$N < 1 || \$N> 5 , 0 , 1 )

I hope I understood your question.

Erik

##### Share on other sites

Hi ghang. I guess there is many solutions to that. Here is one.

You can use an OR in a IF-statement like this example:

if( \$N < 1 || \$N> 5 , 0 , 1 )

I hope I understood your question.

Erik

thanks , i found out some hope from both of your advice , i will adjust the if(\$,\$,\$) function

cheers!!!

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×