how to simplify many OR in if statement?
From: Alan (alanchoiyimlung_at_sinatown.com)
Date: 12/23/03
- Next message: Mike Hewson: "Re: simple increment operator question."
- Previous message: Jeff Schwab: "Re: simple increment operator question."
- Next in thread: Robert Stankowic: "Re: how to simplify many OR in if statement?"
- Reply: Robert Stankowic: "Re: how to simplify many OR in if statement?"
- Reply: Jeff Schwab: "Re: how to simplify many OR in if statement?"
- Reply: Mike Hewson: "Re: how to simplify many OR in if statement?"
- Reply: John Bode: "Re: how to simplify many OR in if statement?"
- Reply: Christian Bau: "Re: how to simplify many OR in if statement?"
- Reply: Simon Cooke: "Re: how to simplify many OR in if statement?"
- Reply: Nils O. Selåsdal: "Re: how to simplify many OR in if statement?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Dec 2003 17:56:27 +0800
I have many OR in the if statement, any method to simplify?
if (val == 5 | val == 9 | val == 34 | val == 111 | val == 131 | .......)
// ....
thank you
- Next message: Mike Hewson: "Re: simple increment operator question."
- Previous message: Jeff Schwab: "Re: simple increment operator question."
- Next in thread: Robert Stankowic: "Re: how to simplify many OR in if statement?"
- Reply: Robert Stankowic: "Re: how to simplify many OR in if statement?"
- Reply: Jeff Schwab: "Re: how to simplify many OR in if statement?"
- Reply: Mike Hewson: "Re: how to simplify many OR in if statement?"
- Reply: John Bode: "Re: how to simplify many OR in if statement?"
- Reply: Christian Bau: "Re: how to simplify many OR in if statement?"
- Reply: Simon Cooke: "Re: how to simplify many OR in if statement?"
- Reply: Nils O. Selåsdal: "Re: how to simplify many OR in if statement?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]