vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   iif Function - what's using for ? (https://vborg.vbsupport.ru/showthread.php?t=74611)

WetWired 01-19-2005 01:13 PM

Does PHP not directly support ?: ?

sabret00the 01-19-2005 01:19 PM

it does but the IIF's are purdier ;)

Andreas 01-19-2005 01:27 PM

Quote:

Originally Posted by WetWired
Does PHP not directly support ?: ?

It does. iif() is just a wrapper.

filburt1 01-19-2005 02:22 PM

In iif(), the third argument is optional, which can make it more convenient every now and then.

Xenon 01-20-2005 09:17 PM

not that i ever needed that special behaviour of iif ;)

deathemperor 01-21-2005 09:57 AM

iff() is really useful when used within queries, it's such a simple but effective functions. Vb staffs always do great jobs.

sabret00the 01-21-2005 12:31 PM

isn't IIF actually a php function?

guess not, i've been using it all this time and didn't even know lol

Andreas 01-21-2005 12:34 PM

No, it's a vBulletin function defined in functions.php

deathemperor 01-21-2005 12:50 PM

Quote:

Originally Posted by sabret00the
isn't IIF actually a php function?

guess not, i've been using it all this time and didn't even know lol

that's really funny, guess you use editor with non color highlight ? if DW or any other that highlight php functions they won't do in iff(), simple it's not a php based

sabret00the 01-21-2005 02:49 PM

Quote:

Originally Posted by deathemperor
that's really funny, guess you use editor with non color highlight ? if DW or any other that highlight php functions they won't do in iff(), simple it's not a php based

you know what, i've only just realised that it don't highlight the iif() in the red it uses for other functions. damn. lol


All times are GMT. The time now is 08:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05322 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete