The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
IFT-structure
01-05-2021, 10:19 AM
Post: #1
IFT-structure
About my previus post to which I couldn't add a reply, here is a logical explanation.

IFT looks for the last but one element before itself (true/1 or not true/0) to execute the instruction just before itself.

But as DROP-command has cleared, by definition, the last argument in the stack (at level 1), a problem arises logically, so that John's Keith's suggestion is not valid in that case.

Here I copied my original thread:

About the use of IFT
suggested by John Keith

Try and run that program:
«1000 6 5 > 1 == DROP IFT
»

Well, it seems that it does not work with the
"object" command DROP.

But, of course
«1000 6 5 > 1 == IF THEN DROP END
»
works fine with DROP
and normal IF... THEN... End.

IFT will work fine, however, with "positive"
instead of command DROP
«1000 6 5 > 1 == "POSITIVE" IFT
»

Regards,
Gil
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
IFT-structure - Gil - 01-05-2021 10:19 AM



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