Arg, compound if's are murder in QDK. I think you want something like this:
if got <glass> then {
if here <faucet> then {
if property <faucet; on> then {
msg <You fill the glass with water.>
property <glass; full>
}
else msg <You need to turn the faucet on first.>
}
else msg <You can't fill your glass here.>
}
else msg <You don't have a glass to fill.>
Which is much nicer. You can either pop that in through notepad or I think there's an asl editor in QDK now, I dunno. Or you can put it in normally using this sturcture. Hope this helps. The trick is not to use 'and's but put an if instead an if...