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
}
|