Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>update...ifpassed pseudo-function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  UPDATE...IFPASSED                                         Pseudo-Function
 Purpose..: Update an item only if another is passed
-------------------------------------------------------------------------------
 Syntax...: UPDATE <uIt1> IFPASSED <uIt2> [ TO <uIt3> ]

 Arguments: <uIt1>    = a variable to be updated.

            <uIt2>    = an item which is checked to ensure
                        it was passed. Then it is assigned to <uIt1>.
                        If not, then <uIt1> is set to NIL.

            [<uIt3>]  = if used, then it, rather than <uIt2>,
                        is assigned to <uIt1>.

 Remark...: The command is a #translate function.

               #command UPDATE <v1> IFPASSED <v2> ;
                        => ;
                        iif( <v2> == NIL, NIL, <v1> := <v2> )

               #command UPDATE <v1> IFPASSED <v2> TO <v3> ;
                        => ;
                        iif( <v2> == NIL, NIL, <v1> := <v3> )

            You must have a #include "FW_AIDS.CH" statement in your
            source code file to use the command.

 Source...: FW_AIDS.CH
-------------------------------------------------------------------------------
 Example..: To show the command, the item is to
            be updated if a parameter is passed.
            ...
            UPDATE  cParm IFPASSED cWasIt TO "The default"


See Also:

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson