Scheme if statement
1 Attachment(s)
I'm just starting to use some scheme language but I can't find the correct way to implement an if function. I attached my code, which works fine generally. You'll see in line 28 it pushes the "ok" button if the dialog box pops up that warns that the mesh and settings have changed. I want to put this operation in a if statement. If that warning doesn't appear right now, the process fails at that line. How do I put it into an if statement such that if the warning dialog box appears, click ok, if it doesn't, continue.
|
if Condition
Actually, you can replace whole of the code with Scheme and Journal Commands, such as, using command
(ti-menu-load-string "define user-defined execute-on-demand "nameOfFunction" ") to execute Execute On Demand function. As far as if in Scheme is concerned, it is straightforward (do ((i 0 (+ i 2)))((> i 10)) (if (> i 4) (format #t "~a\n" i) )) i is printed only if its value is greater than 4. Of course, do loop is just used to explain; if condition use is (if (condition to check) commands if true) |
All times are GMT -4. The time now is 08:02. |