Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Konrad Anikiel  
#1 Posted : 09 November 2010 20:10:14(UTC)
Konrad Anikiel


Rank: Member

Groups: Registered
Joined: 26/10/2010(UTC)
Posts: 24
Man
Location: England

Was thanked: 1 time(s) in 1 post(s)
Hiyah,
How do I do if without else, like this (Mathcad):


And how do I insert images into posts on this forum without using photobucket or the likes?

Regards
Konrad

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 09 November 2010 20:41:06(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Konrad,

Here it is:

The "if" is actually performed as the function with three parameters - if(3). There is no "if" without "else" in SMath. I do not know if Andrey could introduce if(2) - function with two parameters, the "if" without "else". This was mentioned few times by some users.

About inserting pictures in the post, just look at the Notes on Using the Forum please. There you will find the explanation on how to upload the pictures by using SMath Wiki File Management and put their links in the posts of the Forum.

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Konrad Anikiel  
#3 Posted : 09 November 2010 23:01:16(UTC)
Konrad Anikiel


Rank: Member

Groups: Registered
Joined: 26/10/2010(UTC)
Posts: 24
Man
Location: England

Was thanked: 1 time(s) in 1 post(s)
Thanks Radovan. That's a pitty, let's hope a two-argument if will come one day :-)
Konrad
Offline fanda  
#4 Posted : 09 March 2013 14:14:53(UTC)
fanda

Rank: Newbie

Groups: Registered
Joined: 09/03/2013(UTC)
Posts: 4
Czech Republic
Location: Prague

Hello,
yes, that's something, which could make user functions easier to understand and to look better.

+1 on this Good

Thank you for considering it,
Fanda
Offline dan  
#5 Posted : 14 March 2013 15:21:30(UTC)
dan

Rank: Newbie

Groups: Registered
Joined: 14/03/2013(UTC)
Posts: 4
Romania
Location: Cluj Napoca

any way i can print a message in a for loop?
i have 3 cases that change 2 variables, but it would be useful to know in which case i'm in
thanks in advance

Edited by user 14 March 2013 15:25:38(UTC)  | Reason: Not specified

dan attached the following image(s):
Capture.JPG
Offline Davide Carpi  
#6 Posted : 14 March 2013 17:08:17(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,654
Man
Italy
Location: Italy

Was thanked: 1340 time(s) in 879 post(s)
Something like this?


regards,

w3b5urf3r
File Attachment(s):
zoneCases.sm (9kb) downloaded 111 time(s).
Davide Carpi attached the following image(s):
SMath Studio - [zoneCases.sm]_2.png
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline dan  
#7 Posted : 18 March 2013 15:31:18(UTC)
dan

Rank: Newbie

Groups: Registered
Joined: 14/03/2013(UTC)
Posts: 4
Romania
Location: Cluj Napoca

yes that did it,

thank you Biggrin
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.