[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Re: if something posted in post window,do this question



I don't understand exactly what you want to do, but would this do what you want?

Tdef(\x,{100.do{
    var test = 0.2.coin;
    if(test, {"first test is true".postln});
    if(0.5.coin, {"second test is true".postln});
    if(test, {"first test was true".postln});
    0.5.wait;}}
).play;

In other words, if later in the code you will want to know whether the first boolean was true or false, simply save it into a variable ("test" in the example above).

Hope this helps,

Bruno

Bruno

On Sat, Dec 13, 2014 at 6:57 AM, KarlHungus <Karl_Hungus@xxxxxxxx> wrote:
hi, thanks but this is not what i am after exactly
this was just example
i need to see how to implement third if statement, that checks
if "play".postln; is true or false (posted or not posted)
then if true, do something

how to check if "play".postln; is true or false is my main concern here



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/if-something-posted-in-post-window-do-this-question-tp7615293p7615297.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/