How can you set an event that triggers with a variable

I wish to make an event that triggers when the number inside my variable is between two values.
How can I do ?
Thanks

Use 2 conditions. For example to check if between 5 and 9 not including them:
Variable > 5
Variable < 9