PDA

View Full Version : iif


Takara
07 May 2002, 02:01
I'm making a hack, and I'm wondering how to use iff as VB does. This is what is in newreply.php:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now, if I wanted to convert this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to use iff, would it look something like this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I'm not quite sure, at the end of the one VB uses there is ,$HTTP_HOST. I'm not sure what to replace that with, or with anything at all.

Thanks :bunny: (I just love that bunny ^^)

Mark Hensler
07 May 2002, 06:48
If you've just got to use it, try just NULL.

Takara
07 May 2002, 07:40
Oh, thanks. Whats it for anyway?

Chen
07 May 2002, 13:09
iif() is used to shorten simple:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


blocks.

Takara
07 May 2002, 19:38
hehe, simmilar to the mirc iif then. Thankies you two!

Scott MacVicar
07 May 2002, 19:50
ooh another irc person what servers do you go on Takara?

Mark Hensler
07 May 2002, 19:53
it's also like the SQL version

Chen
07 May 2002, 19:57
Only on SQL it's just IF. :)

Takara
07 May 2002, 22:50
Originally posted by PPN
ooh another irc person what servers do you go on Takara?

irc.enterthegame.com

I hang out in the Ragnarok Online chans, though Im just currently creating a new site/chan with a group of friends.