![]() |
not to display string if variable is null.
I need help making something like this.
so for example Code:
|
If the variable is set to null when there is no value, then I think you could check it by using $number === null (three '='). If the variable is not set at all when there's no number then it won't be equal to null so you'd have to use isset($number) to see if it's set.
|
i think i got it
i think i figured it out Is this correct? Code:
if (isset($number)) |
Yeah, that will work if the variable isn't set at all when there's no number.
|
Quote:
--------------- Added [DATE]1347032342[/DATE] at [TIME]1347032342[/TIME] --------------- one more question... how would i go about adding the if/else in this Code:
$template_hook['forumhome_above_forums'] .= "". --------------- Added [DATE]1347034575[/DATE] at [TIME]1347034575[/TIME] --------------- nope i tried this ty u guys for you patience with me.. Code:
$template_hook['forumhome_above_forums'] .= "".if (isset($shirtid)) { okay so i give up here is my plugin Whats wrong here???? Code:
$shirtid = "". $decode[items][shirt][id] .""; Getting Close i can feel it... im not getting any errors but This works! I tested Code:
if (isset($shirtid)) { Code:
else --------------- Added [DATE]1347036765[/DATE] at [TIME]1347036765[/TIME] --------------- End Result Which works!!!! Code:
if ($shirtid == NULL) { |
All times are GMT. The time now is 11:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|