[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: assignment in conditional expression?
- From: David Jeske <jeske@...>
- Date: Mon, 7 Dec 1998 16:35:26 -0800
Is there any way to do assignment inside an expression? I often want
to do this in if or while blocks and whenever I try something like:
if ((a = fn()) == 2) then
or:
while (a = fn()) do
it (of course) dosn't work.. Is there some way to do assignment inside
an expression like this, and if not, why not?
--
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + jeske@chat.net