if without else?

if without else? - Сообщения

#1 Опубликовано: 09.11.2010 14:10:14
Konrad

Konrad

1 сообщений из 24 понравились пользователям.

Группа: User

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
#2 Опубликовано: 09.11.2010 14:41:06
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

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!"
#3 Опубликовано: 09.11.2010 17:01:16
Konrad

Konrad

1 сообщений из 24 понравились пользователям.

Группа: User

Thanks Radovan. That's a pitty, let's hope a two-argument if will come one day :-)
Konrad
#4 Опубликовано: 09.03.2013 07:14:53
fanda

fanda

0 сообщений из 4 понравились пользователям.

Группа: User

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

+1 on this

Thank you for considering it,
Fanda
#5 Опубликовано: 14.03.2013 08:21:30
dan

dan

0 сообщений из 4 понравились пользователям.

Группа: User

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
Capture.JPG
#6 Опубликовано: 14.03.2013 10:08:17
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Something like this?


regards,

w3b5urf3r
zoneCases.sm (8 КиБ) скачан 132 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Опубликовано: 18.03.2013 08:31:18
dan

dan

0 сообщений из 4 понравились пользователям.

Группа: User

yes that did it,

thank you
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений