Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.

 

The COE 2008 Fall Industry Workshops

Experience two days of industry-focused education and hands-on training on the Dassault PLM solutions suite of products.  All education featured at the workshop is developed by and for users of CATIA®, ENOVIA®, DELMIA® and SIMULIA®.
 

Automotive
Oct. 15-16
Troy, Michigan

Aerospace & Defense
Oct. 27-28
Wichita, Kansas


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: Optimize Rule Performance

You are not authorized to post a reply.   
Author Messages
ROARKJE

09 May 2008 06:18 AM

Is one of these rules more efficient then the other? 

I have been avoiding the "Else" statement because I feel the rule is easier to read, but I don't know if I am creating poor performance in CATIA by not using the "Else" statement. 

Any ideas?/*Rule 1*/

 

If X > Y
{
Message (“X is greater then Y&rdquo
}
If X < Y
{
Message (“X is less then Y&rdquo
}

-------------------------------------

/*Rule 2*/
If X > Y
{
Message (“X is greater then Y&rdquo
}
Else 
{
Message (“X is less then Y&rdquo
}
DBEZAIRE

09 May 2008 07:54 AM

Maybe just personal preference on the programmers part.  Most of my rules are setup with Rule.1 format.

You are not authorized to post a reply.
Forums > COE Forums > KBE > Optimize Rule Performance



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)