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-nmm6 (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-nmm6 (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-nmm6 (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
IF constructs: Selection of multiple objects or numbers
Author Message
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #4
RE: IF constructs: Selection of multiple objects or numbers
(06-21-2012 07:12 AM)Anarch Cassius Wrote:  
Code:
<ARGN1> < 17

This is better one Smile

But if you use complex; for example
1,6,12,60 etc

you can use this

Code:
[function f_seperator]
if (<argv[0]> == 0)
return <eval <argv> - 1>
else
return <argv[<argv[0]>]>
endif

[Defname d_asd]
asd=1,6,12,60

and in-code
Code:
for 1 <f_seperator 0,<def.asd>>
if <f_seperator <dlocal._for>,<def.asd>> == <ARGN1>
MESSAGE This is beyond your Rank.
RETURN 1
ENDIF
endfor
(This post was last modified: 06-21-2012 08:15 AM by xwerswoodx.)
06-21-2012 08:13 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: IF constructs: Selection of multiple objects or numbers - xwerswoodx - 06-21-2012 08:13 AM

Forum Jump:


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