[erlang-questions] Global Variable

J Bhanot j.bhanot@REDACTED
Mon Feb 25 06:34:22 CET 2008


Hi,

I simple want to use if-else statements and use data from that to build 
message...

e,g,

if condition = 1then

msg = 1

else

if condition = 2 then

msg = msg + 2 

if condition = 3 then

return msg

Basically, i want to build message recursively based upon 
conditions...i.e. msg is my global variable

I just could not find out the way it can be done in erlang

Thanks,
jb
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080225/9a5c6967/attachment.htm>


More information about the erlang-questions mailing list