Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 MIssing end ifs
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

alex042
Average Member

USA
631 Posts

Posted - 03 September 2002 :  08:24:26  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:

if strBlaBla="bla" then Response.Write "bla"
if strBlaBla2="bla2" then Response.Write "bla2"
if strBlaBla3="bla3" then Response.Write "bla3"


But you could do the following to maintain begin/end consistency?

if strBlaBla="bla" then Response.Write "bla" end if
if strBlaBla2="bla2" then Response.Write "bla2" end if
if strBlaBla3="bla3" then Response.Write "bla3" end if

Go to Top of Page

snaayk
Senior Member

USA
1061 Posts

Posted - 03 September 2002 :  08:41:22  Show Profile  Visit snaayk's Homepage  Send snaayk an AOL message  Send snaayk an ICQ Message  Send snaayk a Yahoo! Message
Definietly less readable. I was looking for those orphaned end ifs, for quite a while. I just [i]knew[/] that they had to be in there somewhere, afterall, the page loaded without errors

One never ceases to learn
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 03 September 2002 :  08:44:06  Show Profile
Then do this

if x = 1 then
 y = 2
 z = 3
else
 'do nothing at present, but in future something might be done here
end if

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07