The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
no == ?
Author Message
n1ghtwish
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 28 in 8 posts
Joined: Jan 2016
Reputation: 0



Post: #7
RE: no == ?
Code:
foritems 200
   if (!<isempty <tag.whatever>>) // if tag.whatever exists
        ... do stuff here .....
   endif
   // if no tag.whatever, do nothing
endfor

You could also do this...

Code:
if (!<isnum <tag0.whatever>>)

If the tag does not exist, tag0.whatever will translate to 0, making the isnum statement true, but since we don't want it to be a number (we want it to be text, which means the tag has something stored), we use the NOT operator to make the statement false.

If it's not a number, it's a string.

Right?
(This post was last modified: 10-02-2016 06:42 PM by n1ghtwish.)
10-02-2016 06:33 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
no == ? - x77x - 09-27-2016, 06:06 AM
RE: no == ? - rastrero - 09-27-2016, 07:55 AM
RE: no == ? - Coruja - 09-27-2016, 10:17 AM
RE: no == ? - x77x - 09-28-2016, 06:11 AM
RE: no == ? - Kanibal - 09-28-2016, 09:29 PM
RE: no == ? - x77x - 10-02-2016, 05:09 AM
RE: no == ? - n1ghtwish - 10-02-2016 06:33 PM
RE: no == ? - x77x - 10-03-2016, 07:02 AM
RE: no == ? - x77x - 10-06-2016, 09:13 PM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)