if $i1 < 0 then set 0


    May 05 2006 | 10:27 pm
    if $i1 < 0 then set 0
    whats wrong here? quick ...

    • May 06 2006 | 3:51 am
      works here with
      [number] -> [if $i1 < 0 then set 0] -> [print]
      (numbers less than zero cause "set 0")
      Roman Thilenius wrote: > if $i1 < 0 then set 0 > > whats wrong here? quick ...
    • May 06 2006 | 6:57 am
      This might be obvious, but anyway: Remember that the "set 0" message returned most likely will update value of the receiving object(s), e.g. a number box, but they will not be outputting anything. If you want them to output, don't use the set:
      Best, Trond
    • May 06 2006 | 1:56 pm
      hi
      put only 0!
      if $i1
      if you need to update some other box use the object prepens: prepend SET.
    • May 06 2006 | 3:29 pm
      but it didnt "set" it, which is what i wanted it to do.
      no idea what i had wrong yesterday, maybe my numbox had a limit or maxmsp was making fun of me.
      or it does not work on fridays ... ?
    • May 06 2006 | 4:31 pm
      You don't need the set. if $i1 < 0 then O else out2 $i1 something like this migh be more interesting ? Depends :-)
    • May 06 2006 | 4:33 pm
      hi
      try this