Simple question

Nico Weling nico.weling@REDACTED
Tue Aug 28 14:01:31 CEST 2001


Hi Erlang freaks,

I need OR within an case clause. Something like:


	case Name of
		peter OR klaus OR carsten -> 
			io:format("Is a man~n",[]);
		anna OR birgit OR petra -> 
			io:format("Is a woman~n", []);
		Other -> 
			io:format("Is a Zombie~n", [])
	end.

Is this possible, and if, how is the syntax.

Thanx a lot,

Nico.



More information about the erlang-questions mailing list