Timeline for If-statement does not evaluate if condition is true [duplicate]
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:56 | history | edited | CommunityBot |
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
|
|
Dec 21, 2012 at 23:18 | comment | added | rm -rf♦ | @Mr.Wizard I think so. I did vote to close 3700 as a dupe of 3447 when it was asked (as did rcollyer), but it expired. Perhaps we should close 3447 -> 3700 (even though the former is older) because 3700 has a better title and more views (probably because it is easier to search for) | |
Dec 21, 2012 at 23:05 | comment | added | Mr.Wizard | @rm-rf Indeed. Should we close one of these (3447/3700) as well? | |
Dec 21, 2012 at 15:50 | comment | added | rm -rf♦ | Another duplicate: mathematica.stackexchange.com/q/3447/5 | |
Dec 21, 2012 at 15:03 | comment | added | Mr.Wizard | Frink, please try to make an effort to find existing questions which address your problem before asking a new one. In this case a search for "If Null" would have brought up the proper question as the first result. | |
S Dec 21, 2012 at 14:59 | history | edited | CommunityBot |
insert duplicate link
|
|
S Dec 21, 2012 at 14:59 | history | closed | Mr.Wizard | exact duplicate | |
Dec 21, 2012 at 10:21 | vote | accept | RMMA | ||
Dec 21, 2012 at 10:17 | history | edited | m_goldberg | CC BY-SA 3.0 |
Improved readability
|
Dec 21, 2012 at 10:13 | answer | added | m_goldberg | timeline score: 8 | |
Dec 21, 2012 at 10:08 | comment | added | ssch |
Map[If[# == 1, Unevaluated[Sequence[]], #] &, {2, 1, 3, 1, 4}] in that case :)
|
|
Dec 21, 2012 at 10:06 | comment | added | RMMA | thank you ssch. I know that this works. Just wanted to know if there is a possibility to get the solution out of the if directly. | |
Dec 21, 2012 at 10:04 | history | edited | RMMA | CC BY-SA 3.0 |
edited title
|
Dec 21, 2012 at 10:03 | comment | added | ssch |
DeleteCases[{2, 1, 3, 1, 4},1]
|
|
Dec 21, 2012 at 9:55 | history | asked | RMMA | CC BY-SA 3.0 |