PDA

View Full Version : Can you do shorthand If..Else in VBScript?


Spudhead
04-17-2003, 11:58 AM
Like:

FamChoice_D = (FamChoice=false ? " DISABLED" : "")

I'm getting an error saying the "?" is an invalid character...

raf
04-17-2003, 02:18 PM
In VBscript, the singleline syntax is like this:
If A > 10 Then A = A + 1 : B = B + A : C = C + B