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

[REBOL] Re: Working with objects

From: santilli::gabriele::gmail::com at: 19-Jan-2009 17:57

[Please forward to the ML if this arrives there garbled.] On Mon, Jan 19, 2009 at 6:51 AM, Mat Bettinson <mat-plothatching.com> wrote:
> cgidatain: read-cgi > cgidata: construct decode-cgi cgidatain
1) Make a template object with your default values: template: context [ digital: "all" ; ... ] 2) Use construct/with: cgidata: construct/with decode-cgi cgidatain template 3) Now, if digital was not specified in the query, the expression: cgidata/digital will just be "all". HTH, Gabriele.