conditions

i@u ~/test/boo> cat cond.boo
x = 0
if x == 1:
    print "x == 1"
else:
    print "x != 1"
i@u ~/test/boo> booi cond.boo
x != 1
i@u ~/test/boo> cat cond.boo
if x == 1:
    print "x == 1"
else:
    print "x != 1"
i@u ~/test/boo> booi cond.boo
cond.boo(1,4): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown identifier: 'x'.

普通。

i@u ~/test/boo> cat cond.boo
x = 0
if x == 1 or x == 0:
    print "x == 1 or 0"
else:
    print "other"
i@u ~/test/boo> booi cond.boo
x == 1 or 0
i@u ~/test/boo> cat cond.boo
x = 0
if x == 1 || x == 0:
    print "x == 1 or 0"
else:
    print "other"
i@u ~/test/boo> booi cond.boo
cond.boo(2,12): BCE0043: Boo.Lang.Compiler.CompilerError: Unexpected token: |. ---> cond.boo:2:12: unexpected token: ["|",<91>,line=2,col=12]--- End of inner exception stack trace ---

なんか and とか or とか not なのね。

なにかあれば下記メールアドレスへ。
shinichiro.hamaji _at_ gmail.com
shinichiro.h