1 страниц (4 вхождений)
if then else statement - Сообщения
#1 Опубликовано: 24.03.2019 15:57:17
Hello
I'm new in Smath
I want to do "if δ>0 then k=a+b else k=c+d"
But impossible to include the equation k:=a+b in the "if statement"
When I type "equal" after "k", the "equal" sign is put on the fist line and answer "k-not defined"
I found an exemple on the forum but I'm not able to reproduce it by myself
My test file is attached
Thank you for your help
test if statement.sm (5 КиБ) скачан 63 раз(а).
I'm new in Smath
I want to do "if δ>0 then k=a+b else k=c+d"
But impossible to include the equation k:=a+b in the "if statement"
When I type "equal" after "k", the "equal" sign is put on the fist line and answer "k-not defined"
I found an exemple on the forum but I'm not able to reproduce it by myself
My test file is attached
Thank you for your help
test if statement.sm (5 КиБ) скачан 63 раз(а).
#2 Опубликовано: 24.03.2019 16:47:44
you have to type ":" (colon) and not "=" (equal)
sergio
sergio
#3 Опубликовано: 24.03.2019 18:34:24
1 страниц (4 вхождений)
-
Новые сообщения
-
Нет новых сообщений