Anonymous user
Modulinos: Difference between revisions
→{{header|REXX}}: added the REXX language. -- ~~~~
(Dart) |
(→{{header|REXX}}: added the REXX language. -- ~~~~) |
||
Line 1,272:
q("no")</lang>
=={{header|REXX}}==
<lang rexx>/*REXX program to detect whether or not it is a "scripted main" program.*/
parse source . howInvoke .; if howInvoke \== 'COMMAND' then return ''
/* ┌────────────────────────────────────────────────┐
│ │
│ At this point, we know that this program was │
│ invoked via the "command line" and not via │
│ another program. │
│ │
└────────────────────────────────────────────────┘ */
say 'and away we go ...'</lang>
=={{header|Ruby}}==
|