Timeline for Assign a variable to a condition only if the condition is met using Which
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 8, 2020 at 0:41 | vote | accept | John | ||
May 7, 2020 at 23:46 | comment | added | Edmund |
What are you expecting the Which to evaluate to when the x variable is unassigned? This feels like an XY problem..
|
|
May 7, 2020 at 23:41 | answer | added | MassDefect | timeline score: 0 | |
May 7, 2020 at 23:41 | answer | added | RungeC | timeline score: 1 | |
May 7, 2020 at 23:31 | comment | added | Nasser |
why can't you just do x = Round[73.99, 0.1]; If[x == 74, .etc....] ?
|
|
May 7, 2020 at 23:02 | history | edited | John | CC BY-SA 4.0 |
added 164 characters in body
|
May 7, 2020 at 22:54 | history | asked | John | CC BY-SA 4.0 |