text in if statements

text in if statements - Mensajes

#1 Publicado: 1/5/2019 17:40:54
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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 Publicado: 1/5/2019 18:24:24
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Hi. You have some options for do that. Here are two:
Clipboard01.gif
Best regards.
Alvaro.
#3 Publicado: 1/5/2019 22:04:46
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

You have some options for doing that.


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

str.PNG

#4 Publicado: 2/5/2019 17:41:07
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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 Publicado: 2/5/2019 17:47:44
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 2/5/2019 18:04:03
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: User

Sorry, I have never constructed a snippet before. How do I do that?
#7 Publicado: 2/5/2019 19:05:13
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 3/5/2019 10:15:42
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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 Publicado: 3/5/2019 13:09:07
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

g(str,x):=then from menu f(x), then cases, then fill-in
#10 Publicado: 3/5/2019 14:11:45
fedeghi

fedeghi

25 me gusta en 112 mensajes.

Grupo: User

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

Cattura.PNG
A 1 usuarios les gustó este mensaje
frapuano 3/5/2019 14:38:00
#11 Publicado: 3/5/2019 16:16:46
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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 Publicado: 3/5/2019 16:19:43
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: User

Wrote

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



Thank you. I understand now.
#13 Publicado: 3/5/2019 17:37:20
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 3/5/2019 17:48:24
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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 Publicado: 7/5/2019 13:15:44
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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 Publicado: 7/5/2019 13:39:45
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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 Publicado: 7/5/2019 14:54:10
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 7/5/2019 15:18:13
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 7/5/2019 15:26:07
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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 Publicado: 7/5/2019 15:31:51
The Cross

The Cross

0 me gusta en 73 mensajes.

Grupo: 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.
  • Nuevos mensajes
  • Sin mensajes nuevos