Thanks for reading my silly question. I'm new to aspect and struggling with some things that are probably very simple but not covered in my documentation.
I have two main questions:
first, i'm trying to do more than one strcmp in an if statement using || (as 'or') but can't get a useable syntax. one of many failed examples is:
if (strcmp room "206") || (strcmp room "306")
numboxes = 2
else
numboxes = 4
endif
I have more than 2 rooms to test so i can't just put the other one in an elseif, i really need to get the 'or' working.
Second, when writing to a file, can i write an integer variable? all i can find is fputs which only takes strings and numtostr is giving me erroneous results.
thanks in advance
frumpus
I have two main questions:
first, i'm trying to do more than one strcmp in an if statement using || (as 'or') but can't get a useable syntax. one of many failed examples is:
if (strcmp room "206") || (strcmp room "306")
numboxes = 2
else
numboxes = 4
endif
I have more than 2 rooms to test so i can't just put the other one in an elseif, i really need to get the 'or' working.
Second, when writing to a file, can i write an integer variable? all i can find is fputs which only takes strings and numtostr is giving me erroneous results.
thanks in advance
frumpus