Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8817

Re: Dynamic question

From Dominik Hezel <dominik.hezel@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Dynamic question
Date 2012-03-01 10:40 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jinjmi$d3f$1@smc.vnet.net> (permalink)
References <jil5s4$rtn$1@smc.vnet.net>

Show all headers | View raw


Am Mittwoch, 29. Februar 2012 13:32:04 UTC+1 schrieb Dominik Hezel:
> Hello,
> 
> I'm stuck in program, because (simplified to the guts)
> 
> x = 8;
> If[Dynamic[x] >= 5, "a", "b"]
> 
> doesn't work. Can anyone tell me why - or even better, offer me a solution how to do this?
> 
> thanks a lot!

OK - I just found the solution!

x = 8;
Dynamic[If[x >= 5, "a", "b"]]

Thanks anyway,  Dominik

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Dynamic question dominik.hezel@googlemail.com - 2012-02-29 12:32 +0000
  Re: Dynamic question Szabolcs <szhorvat@gmail.com> - 2012-03-01 10:34 +0000
  Re: Dynamic question Dominik Hezel <dominik.hezel@gmail.com> - 2012-03-01 10:40 +0000
  Re: Dynamic question Michael Musheghian <michael.musheghian@gmail.com> - 2012-03-01 10:42 +0000

csiph-web