Message 1 of 2
Writing a function in inventor iLogic

Not applicable
02-06-2018
04:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have a small issue with an if statement I am trying to right correctly. The statement involves a pattern and the length of my part.
I need a message to appear if someone inputs a length that isn't divisible by inputted centers to come out to a whole number. So for example:
Someone inputs 112 for length and 3 for the centers into the form. The answer to that is 37.33333333. Since this is not a whole number I would like it to show an error. On the other hand if someone inputs 120 for length and 3 for the center then that works perfectly and no error would appear.
I feel it is probably simple but I am sure someone knows more then me about it. Please if anyone has a snippet of code to share that would be extremely helpful.