Post Reply 
Requesting ELSEIF
03-24-2017, 08:16 PM
Post: #8
RE: Requesting ELSEIF
(03-24-2017 07:45 PM)Carlos295pz Wrote:  
(03-24-2017 06:21 PM)compsystems Wrote:  you need an IFT() functional command? (without ELSE block)

IFTE can be defined without ELSE

but only HOME PRG, for CAS fails

PHP Code:
EXPORT iftHOME(x)
BEGIN
 IFTE
(x>7,print("true"));
 return 
"Done";
END;

#cas
iftCAS(x):=
BEGIN
 IFTE
(x>7,print("true"));
 return 
"Done";
END;
#end 


iftHOME(8); returns "Done"
iftCAS(8); returns

"when(x>7,print(""true"")) in iftCAS(5) instruction #1 error, try debug(iftCAS(5))
Error: Bad Argument Type"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Requesting ELSEIF - toml_12953 - 03-24-2017, 05:30 PM
RE: Requesting ELSEIF - Han - 03-24-2017, 05:38 PM
RE: Requesting ELSEIF - toml_12953 - 03-25-2017, 11:43 AM
RE: Requesting ELSEIF - compsystems - 03-24-2017, 06:21 PM
RE: Requesting ELSEIF - toml_12953 - 03-24-2017, 06:52 PM
RE: Requesting ELSEIF - Carlos295pz - 03-24-2017, 07:45 PM
RE: Requesting ELSEIF - compsystems - 03-24-2017 08:16 PM
RE: Requesting ELSEIF - compsystems - 03-24-2017, 07:16 PM
RE: Requesting ELSEIF - toml_12953 - 03-24-2017, 07:33 PM



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