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.

 

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.)