Click to See Complete Forum and Search --> : iif and asp


pelegk1
08-20-2006, 02:14 PM
does in asp like in vb.net the iif function exist
or i should use this code :
ASP IIF (http://www.freevbcode.com/ShowCode.asp?ID=1600)

Terrorke
08-21-2006, 04:29 AM
you can use the function if you like.

But why not just use if ... then ... else... end if ??

russell
08-21-2006, 09:05 AM
can write your own iif easily enough

Function iif(expression, truePart, falsePart)
If expression Then
iif = truePart
Else
iif = falsePart
End If
End Function
can put it in an include file if u want to use it on multiple pages. quite useful.

edit:: oh, just noticed u already had code for it. no reason not to use it if u like

pelegk1
08-23-2006, 12:53 AM
iif exist inly in ASP.NET and not ASP?