Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: command line [arguments]

From: maximo:meteorstudios at: 6-Apr-2004 13:53

> -----Original Message----- > From: tony summerfelt [mailto:[tmail5--cogeco--ca]] > Sent: Tuesday, April 06, 2004 1:33 PM > To: [rebol-list--rebol--com] > Subject: [REBOL] command line arguments > > On Mon, 5 Apr 2004 16:25:19 +1200, you wrote: > > >> > either system/script/args [ > >> >instead of: > >> >> either not system/script/args == none [ > >> got an error when i tried that: > > >Then you almost certainly have an error in the code before > this point. :) > > here are the first few lines of the program :) > > ; > REBOL [] > > either not system/script/args == none [
rebol prefered (and simpler) style: either none? system/script/args [ print "no args" ][ print "args waiting" ] there is a ? for all datatypes and pseudo types. as in block?, string?, series?, number?, etc HTH! -MAx