text in if statements

text in if statements - Сообщения

#1 Опубликовано: 01.05.2019 17:40:54
The Cross

The Cross

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

Группа: User

Can text be included in an if statement? For example:
If "Thin-walled pipe anchored throughout" then P=1-v.

I have various conditions that different formulas would be used depending on the conditions, see below.restraints.png
#2 Опубликовано: 01.05.2019 18:24:24
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi. You have some options for do that. Here are two:
Clipboard01.gif
Best regards.
Alvaro.
#3 Опубликовано: 01.05.2019 22:04:46
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

You have some options for doing that.


Easy to complete the conditions, thus the project.
Cheers Alvaro ... Jean

str.PNG

#4 Опубликовано: 02.05.2019 17:41:07
The Cross

The Cross

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

Группа: User

I don't understand how to input the data into the statement. If I press the space key, the input ends, and I cannot input anything.
#5 Опубликовано: 02.05.2019 17:47:44
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I don't understand how to input the data into the statement.
If I press the space key, the input ends, and I cannot input anything.


There is no space key to press. Construct the snippet, done.
#6 Опубликовано: 02.05.2019 18:04:03
The Cross

The Cross

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

Группа: User

Sorry, I have never constructed a snippet before. How do I do that?
#7 Опубликовано: 02.05.2019 19:05:13
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Sorry, I have never constructed a snippet before. How do I do that?


Construct the math regions as per the image that we call snippet.
#8 Опубликовано: 03.05.2019 10:15:42
The Cross

The Cross

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

Группа: User

I tried to construct it. My question is how to do that. I try and the below is what happens:if statement.png
#9 Опубликовано: 03.05.2019 13:09:07
Jean Giraud

Jean Giraud

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

Группа: User

g(str,x):=then from menu f(x), then cases, then fill-in
#10 Опубликовано: 03.05.2019 14:11:45
fedeghi

fedeghi

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

Группа: User

The cases() function is included into the "custom functions" plugin, so you should also be sure to have it installed.

Cattura.PNG
1 пользователям понравился этот пост
frapuano 03.05.2019 14:38:00
#11 Опубликовано: 03.05.2019 16:16:46
The Cross

The Cross

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

Группа: User

Wrote

The cases() function is included into the "custom functions" plugin, so you should also be sure to have it installed.

Cattura.PNG



Thank you. I had the "custom functions" plugin installed, but the use of it is not in any of the manuals, at least not that I could find. I had no idea I had to type the word "cases" to get to the input.
#12 Опубликовано: 03.05.2019 16:19:43
The Cross

The Cross

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

Группа: User

Wrote

g(str,x):=then from menu f(x), then cases, then fill-in



Thank you. I understand now.
#13 Опубликовано: 03.05.2019 17:37:20
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I had no idea I had to type the word "cases"


only click the function 'cases' from the f(x) menu.
In the right most place holder of the first 'if'
place the cursor type coma, coma [,,]
that gives another line of conditions ... and so on.
#14 Опубликовано: 03.05.2019 17:48:24
The Cross

The Cross

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

Группа: User

Wrote

Wrote

I had no idea I had to type the word "cases"


only click the function 'cases' from the f(x) menu.
In the right most place holder of the first 'if'
place the cursor type coma, coma [,,]
that gives another line of conditions ... and so on.



Thank you. I was trying to figure out how to do that.
#15 Опубликовано: 07.05.2019 13:15:44
The Cross

The Cross

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

Группа: User

Wrote

Wrote

You have some options for doing that.


Easy to complete the conditions, thus the project.
Cheers Alvaro ... Jean

str.PNG



I use the cases function to type everything in, but when I go back to the first line that says "x if str", as soon as I type "x if str =, as soon as I type the = sign, I get "x not defined". I am trying to understand, but not getting it yet. I had it almost working, but then this glitch appeared.
#16 Опубликовано: 07.05.2019 13:39:45
The Cross

The Cross

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

Группа: User

Wrote

Wrote

Wrote

You have some options for doing that.


Easy to complete the conditions, thus the project.
Cheers Alvaro ... Jean

str.PNG



I use the cases function to type everything in, but when I go back to the first line that says "x if str", as soon as I type "x if str =, as soon as I type the = sign, I get "x not defined". I am trying to understand, but not getting it yet. I had it almost working, but then this glitch appeared.



I figured out how I did it before. I cannot type the = in the above, but it works with a :=. But it does not really work, because if I say str:="b" and x:=7, the answer is 21.99 instead of 14, but it does allow me to type it. I am confused.
#17 Опубликовано: 07.05.2019 14:54:10
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I figured out how I did it before. I cannot type the = in the above, but it works with a :=. But it does not really work, because if I say str:="b" and x:=7, the answer is 21.99 instead of 14, but it does allow me to type it. I am confused.



Equality.PNG

#18 Опубликовано: 07.05.2019 15:18:13
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

Wrote

Wrote

Wrote

You have some options for doing that.


Easy to complete the conditions, thus the project.
Cheers Alvaro ... Jean

str.PNG



I use the cases function to type everything in, but when I go back to the first line that says "x if str", as soon as I type "x if str =, as soon as I type the = sign, I get "x not defined". I am trying to understand, but not getting it yet. I had it almost working, but then this glitch appeared.



I figured out how I did it before. I cannot type the = in the above, but it works with a :=. But it does not really work, because if I say str:="b" and x:=7, the answer is 21.99 instead of 14, but it does allow me to type it. I am confused.



Please post the worksheet or a screenshot. In the second column of cases you have to use boolean equals, not the assignment operator.

You can find the boolean operators in one of the palettes on the right of your screen, hovering the mouse hover the symbols you should see the keyboard shortcut.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#19 Опубликовано: 07.05.2019 15:26:07
The Cross

The Cross

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

Группа: User

Wrote

Wrote

I figured out how I did it before. I cannot type the = in the above, but it works with a :=. But it does not really work, because if I say str:="b" and x:=7, the answer is 21.99 instead of 14, but it does allow me to type it. I am confused.



Equality.PNG



thank you. I can't use the "Thank" button because every time I do, it says "error occurred"
#20 Опубликовано: 07.05.2019 15:31:51
The Cross

The Cross

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

Группа: User

Wrote

Wrote

I had no idea I had to type the word "cases"


only click the function 'cases' from the f(x) menu.
In the right most place holder of the first 'if'
place the cursor type coma, coma [,,]
that gives another line of conditions ... and so on.



How do I remove a line. I tried backspacing, and it did not work.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений