I was reading that you can simplify an If Then Else Statement such 
as:

If x = 5 then
    y = True   'y is boolean
else
    whatever
end if

by re-writing as

y = (x = 5)  
Because if (x = 5) is evaluated to "True" then
y is initialized to "True" also.

That's all well enough, but I'm having trouble seeing how to use 
this eye pleasing space saver to handle something like this:

If x = 5 then
    y = 10
else
    whatever
end if

Can anyone explain this to me?




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [EMAIL PROTECTED]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to