[thelist] ASP equivalent of $var = ($a == 0) ? 'hello' : 'goodbye';

Jon Haworth jon at laughing-buddha.net
Wed Dec 10 04:42:40 CST 2003


Hi Dunstan,

> Is the an ASP equivalent of PHP's syntax:
>
> $var = ($a == 0) ? 'hello' : 'goodbye';

I don't know very much about ASP, but Visual Basic has IIF ("inline if"),
which might be worth a try:

  var = iif(a = 0, "hello", "goodbye")

Cheers
Jon



More information about the thelist mailing list