[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] if question
<x-tad-smaller>hello!
am i doing something wrong here?
a = 0;
if(a>0 and: a<2){"hi".postln}{"lo".postln}
</x-tad-smaller>
or here?
<x-tad-smaller>a = 2;
if( a<2 and: a>0 ){"hi".postln}{"lo".postln}
i get:
ERROR: Message '<' not understood.
RECEIVER:
false
ARGS:
Integer 2
CALL STACK:
DoesNotUnderstandError-reportError 066E7530
arg this = <instance of DoesNotUnderstandError>
Nil-handleError 066E7470
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Object-throw 066E7410
arg this = <instance of DoesNotUnderstandError>
Object-doesNotUnderstand 066E73B0
arg this = false
arg selector = '<'
arg args = [*1]
< closed FunctionDef > (no arguments or variables)
Interpreter-interpretPrintCmdLine 066E72F0
arg this = <instance of Interpreter>
var res = nil
var func = <instance of Function>
Process-interpretPrintCmdLine 066E7290
arg this = <instance of Main>
ERROR: Message '>' not understood.
RECEIVER:
false
ARGS:
Integer 0
CALL STACK:
DoesNotUnderstandError-reportError 0648C1F0
arg this = <instance of DoesNotUnderstandError>
Nil-handleError 0648C130
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Object-throw 0648C0D0
arg this = <instance of DoesNotUnderstandError>
Object-doesNotUnderstand 0648C070
arg this = false
arg selector = '>'
arg args = [*1]
< closed FunctionDef > (no arguments or variables)
Interpreter-interpretPrintCmdLine 0648BFB0
arg this = <instance of Interpreter>
var res = nil
var func = <instance of Function>
Process-interpretPrintCmdLine 0648BF50
arg this = <instance of Main>
grtz,
tom</x-tad-smaller>