Aug 23, 2005 #1 SuperAl Structural Jul 15, 2005 4 0 0 GB Hi Folks, I want to write an If statement which does one thing if a sum results in an Integer or another if the sum is a Real number. I.e. If A/B = Integer then C else D Can anyone give me a hand with the MathCAD commands/syntax? Thanks in advance Al
Hi Folks, I want to write an If statement which does one thing if a sum results in an Integer or another if the sum is a Real number. I.e. If A/B = Integer then C else D Can anyone give me a hand with the MathCAD commands/syntax? Thanks in advance Al
Aug 23, 2005 #2 KatiLynSki Civil/Environmental May 16, 2005 33 0 0 US I think you want something like this... m:= C if mod (A,B)=0 D otherwise Upvote 0 Downvote
Aug 23, 2005 #3 IRstuff Aerospace Jun 3, 2002 44,374 5 38 US ans:if(mod(a,b)=0,C,D) TTFN Upvote 0 Downvote
Aug 24, 2005 Thread starter #4 SuperAl Structural Jul 15, 2005 4 0 0 GB Thanks folks Upvote 0 Downvote