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


Groups > comp.soft-sys.math.mathematica > #8799 > unrolled thread

Dynamic question

Started bydominik.hezel@googlemail.com
First post2012-02-29 12:32 +0000
Last post2012-03-01 10:42 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  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

#8799 — Dynamic question

Fromdominik.hezel@googlemail.com
Date2012-02-29 12:32 +0000
SubjectDynamic question
Message-ID<jil5s4$rtn$1@smc.vnet.net>
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!

[toc] | [next] | [standalone]


#8805

FromSzabolcs <szhorvat@gmail.com>
Date2012-03-01 10:34 +0000
Message-ID<jinjau$ctf$1@smc.vnet.net>
In reply to#8799
On Wednesday, 29 February 2012 14:32:04 UTC+2, Dominik Hezel  wrote:
> 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?
> 

I have discussed this here:

http://stackoverflow.com/a/9257152/695132

(Please see from the 3rd paragraphs, but it's instructive to read everything, including the question).

[toc] | [prev] | [next] | [standalone]


#8817

FromDominik Hezel <dominik.hezel@gmail.com>
Date2012-03-01 10:40 +0000
Message-ID<jinjmi$d3f$1@smc.vnet.net>
In reply to#8799
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

[toc] | [prev] | [next] | [standalone]


#8821

FromMichael Musheghian <michael.musheghian@gmail.com>
Date2012-03-01 10:42 +0000
Message-ID<jinjqd$d4n$1@smc.vnet.net>
In reply to#8799
On Wednesday, February 29, 2012 4:32:04 PM UTC+4, Dominik Hezel wrote:
> 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!

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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web