- Joined
- Oct 16, 2003
- Posts
- 2,538
- Reaction score
- 10
- Location
- Tiger's Guest House
- AFL Club
- Western Bulldogs
- Other Teams
- Tiger Woods
I have a noob VBscript question. I am trying to write an If statement, but not with the success required so far.
I am looking to a write a statement where if the variable x is between 2 numbers, then certain text is displayed.
I have tried similar so far:
1. If (40<x<100) Then
msgbox("Text")
2. If (x>40 && x<100) Then
msgbox("text")
It's very simple I know... I am sure I am on the right track, but it just isn't working at the moment. I may have some more noob questions if somebody can answer this simple one!
I am looking to a write a statement where if the variable x is between 2 numbers, then certain text is displayed.
I have tried similar so far:
1. If (40<x<100) Then
msgbox("Text")
2. If (x>40 && x<100) Then
msgbox("text")
It's very simple I know... I am sure I am on the right track, but it just isn't working at the moment. I may have some more noob questions if somebody can answer this simple one!



