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

Register Today!

COE DISCUSSION FORUM
Subject: Prime Numbers

You are not authorized to post a reply.   
Author Messages
COE-FORUM-USER

26 Jun 2006 01:58 PM
I have a need check a value for a prime number

i have a integer calculated from 360deg / ??deg = 37.222267

i then in the law converted to a real value 37

37 its self is prime i want get an answer of 31 which is the next lowest prime value so

i decided to take my real value and always minus 1

37 - 1

36


now im stuck

how do i write while loops in rules

and what is the correct syntak for "for" "let" and "inside" ...what is inside and let???

Madaxe
BPRASAD


27 Jun 2006 05:55 PM
I don't know if you have access to KW documentation in V5R16.

Regarding the use of KWE Langauge, the following html document provides some descriptions on how to use conditional statements inside a rule -- KWA and KWE workbenches. It is taken directly from V5R16 documentations.

It may answer some of your syntax questions that you are asking.
Note: This is an *.html file so after dowloading remove ".txt" extension.



Brian Prasad
COE-DPC/KBE Chairperson
You are not authorized to post a reply.
Forums > COE Forums > KBE > Prime Numbers



ActiveForums 3.6

    

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