MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Interpretation with If

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87260] Interpretation with If
  • From: "Matthias Gottschalk" <mgott at gfz-potsdam.de>
  • Date: Sun, 6 Apr 2008 06:40:35 -0400 (EDT)

Hello

I play around with the Interpretation function and 
encounter
the following:

While this works:

Interpretation[
  {init = 0},
  Panel[
   TabView[
    {
     Style["Initialization", Plain] -> 
RadioButton[Dynamic[init], 1],
     Style["Start", Plain] -> Dynamic[init]
     }
    ]
   ],
  1 + 1
  ]


The following doe not:


Interpretation[
  {init = 0},
  Panel[
   TabView[
    {
     Style["Initialization", Plain] -> 
RadioButton[Dynamic[init], 1],
     Style["Start", Plain] ->
       If[Dynamic[init] == 1,
       Style["True", Red, Italic],
       Style["False", Red, Italic]
       ]
     }
    ]
   ],
  1 + 1
  ]

The If statement is not evaluated.
Does anybody what I am doing wrong?

Regards

Matthias


  • Prev by Date: Re: Inconsistent behavior?
  • Next by Date: Re: Simple Q: How to give computed results from NSolve to a new
  • Previous by thread: Re: Simple Q: How to give computed results from NSolve to
  • Next by thread: Re: Interpretation with If