Jump to content
Sign in to follow this  

If...Then...ElseIf clarification

Recommended Posts

This page explains how to use If...Then...ElseIf:http://www.w3schools.com/vbscript/vbscript_conditionals.asp>>You can use the If...Then...ElseIf statement if you want to select one of many blocks of code to execute:<< The code example shows ElseIF and the expression on the same line: >>ElseIf i = 11 Then<< but does not mention that this is required. You must either keep 'ElseIf' and the <expression> on the same line or use the line break/continuation character to split the line:ElseIf _ i = 11 Then Otherwise you will encounter a complier error.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...