eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
Learn How To Create, Publish & Market E-Books
E-Book Creation Software
Add sophisticated multimedia to your E-Books
Create E-Book covers in minutes
E-Book Marketing & Promotion made easy
Search engine for E-Books
Interviews with eBook authors
Tools for building better eBooks
Archived Message:

Trouble with IF-ELSE-ENDIF control flow

april thunder Hi! I've been using Activ E-book Compiler for quite a while, but I've never had the opportunity to check out or try using the IF-ELSE-ENDIF Activ Script statement. Well, recently, I tried using it, but for some reason, running the script (even if I've copied the example in the HELP file exactly) gives me a message of:

       Active Srcipt Error in Line 3 of scripter.as.  
       Syntax Error in Activ Script command.
       Missing right bracket:
       IF('{dice}')=6 ) THEN

I've also tried tweaking it by adding brackets, but to no avail.

Funny, because the IFSTREQUAL function works fine. Can't figure out why the IF-ELSE-ENDIF command doesn't work.

Posted on: 4:18 am on December 26, 2010
april thunder Found the problem. In the help file, it uses THEN like so:

IF({dice} = 6 ) THEN
      MESSAGEBOX('You rolled a {dice}- lucky for some')
   MESSAGEBOX('You rolled a {dice}')

Using THEN produces an error. But the script runs if THEN is eliminated.  Maybe this should be corrected in the help file.....

(Edited by april thunder at 9:43 am on Dec. 28, 2010)

Posted on: 9:40 am on December 28, 2010

List All Archived Forums

Copyright © 2000-2018, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures