Tests

Tests - MilkToast - Messages

#1 Posted: 1/8/2014 7:17:20 PM
MilkToast

MilkToast

0 likes in 1 posts.

Group: User

What I'm attempting to accomplish is a comparation.

I'm writing a page for a class, and what I want to have happen is a box that says it either passes or fails a test.

I have two values, Mn and Mu. If Mu is bigger than Mn, I want the box to display Pass, else, display fail.

I'd like to do this without using the obnoxiously large if-then format - i'd like it to be as simple as possible.

Being a noob to sMath, I anticipate this has a simple solution like every other problem I've seen.
#2 Posted: 1/8/2014 7:49:56 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

If you want to display a text, an if/else statement is the way... You can build a function [MATH eng]test(A,[/MATH] or you can use parametric variables ( see the attachment - TEST1/TEST2 optimization needs to be set as "numeric" ). Moreover you can use some plugin extension.


Regards,

Davide
2014-01-09 01_01_32-SMath Studio Desktop - [test.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts