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

[ALLY] conditional button? Re:

 [1/2] from: jeff:rebol at: 20-Sep-2000 11:16


Howdy, Greg:
> A simple question: Are conditional statements possible within > Layout objects?
<<quoted lines omitted: 4>>
> view layout [button "number 1" [] > if (fact = 1) [button "number 2" [] ] ]
Here's my favorite way: view layout compose [ button "Number 1" [] (either fact = 1 [[button "number 2" []]][]) ] -jeff

 [2/2] from: gregco::pressroom::com at: 20-Sep-2000 13:25


A simple question: Are conditional statements possible within Layout objects? This (much simplified) attempt to create a conditional button does not work: rebol[] fact: 1 view layout[button "number 1" [] if (fact = 1) [button "number 2" [] ] ] Must the conditional statement be outside the Layout object and act on alternate complete Layout specs? Or is there a n easier way to do it? Thanks, Greg Coughlan

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted