The lines above are nearly good :
Code:
if(loadBoolean("toys.paddle") | loadBoolean("toys.hairbrush"))
show("You have the right toys")
else
show ("You need either a hairbrush or a paddle to play.")
if(loadBoolean("toys.paddle") & loadBoolean("toys.hairbrush"))
show("You have the right toys")
else
show ("You need both a hairbrush and a paddle to play.")
You may also look for loadFirstTrue() for the first one above
Code:
def have = loadFirstTrue("toys.paddle", "toys.hairbrush")
if(have==null)
show ("You need either a hairbrush or a paddle to play.")
elseif(have=="toys.paddle")
show("Use a paddle")
else
show("Use an hairbrush")
I added
loadFirstTrue() for that but the code above is not as simple as I would like, but it add a thing : priority between items.