newbie question

Bengt Kleberg <>
Tue May 17 13:12:09 CEST 2005


Dietmar Schaefer wrote:
> Hi !
> 
> Isn't that supposed to work ?
> 
> 
> if  cmmc_db:getProcState(Key,Name) /= State ->
> instead I have to write
> 
> ProcState = cmmc_db:getProcState(Key,Name),
> 
> if ProcState /= State ->

''if'' is limited in what it can handle. use ''case'' if you want to 
avoid the ''ProcState'' variable.


bengt



More information about the erlang-questions mailing list