On 03/10/2009 3:33 PM, Marianne Promberger wrote:
Two problems with your code:
(1) The "else" has to be on the same line as the closing "}" -- this was
confusing for me as well.
(2) "and" probably should be "&", but read up on logical operators: ?&
Better to always use && in an if.
Duncan M
Two problems with your code:
(1) The "else" has to be on the same line as the closing "}" -- this was
confusing for me as well.
(2) "and" probably should be "&", but read up on logical operators: ?&
Try:
ini=3
b=4
if (ini==1) {
a=3
} else if (ini>1 & b>2 ) {
a=3
} else {
a=6
}
HTH,
Ma
2 matches
Mail list logo