Quick coding question

General ShopSite user discussion

Quick coding question

Postby VinceS » Thu Mar 07, 2013 8:37 am

Does an [-- else_if --] require a [-- end_if --]?

Is it
[-- IF .... --]
[-- ELSE_IF .... --]
<action>
[-- END_IF --]
[-- END_IF --]

or

[-- IF .... --]
[-- ELSE_IF .... --]
<action>
[-- END_IF --]
VinceS
 
Posts: 134
Joined: Fri Apr 06, 2007 1:26 pm

Re: Quick coding question

Postby Jim » Thu Mar 07, 2013 9:25 am

The [-- End_IF --] goes with the [-- IF ... --], the [-- Else_IF ... --] is just an intermediary condition within the IF ... End_If.

So this is the proper format
[-- IF .... --]
<possible action>
[-- ELSE_IF .... --]
<action>
[-- END_IF --]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 91 guests