Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12218 > unrolled thread
| Started by | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| First post | 2012-11-02 04:43 +0000 |
| Last post | 2012-11-02 04:43 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Formatting Dynamic Output Gregory Lypny <gregory.lypny@videotron.ca> - 2012-11-02 04:43 +0000
| From | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| Date | 2012-11-02 04:43 +0000 |
| Subject | Formatting Dynamic Output |
| Message-ID | <k6vj2e$69a$1@smc.vnet.net> |
Hello everyone,
I have some cells that use Dynamic to display a string or result of a StringForm expression when a condition is met. It looks like this.
Dynamic[ If[conditionMet, displayString, ""]]
It works fine except for two things. If the condition is met and the string to be display is long, it is indented to the right when it wraps to the second line. How can I remove the indent, especially for StringForm output? The second thing is when the condition is not met, a blank cell is output because I have an empty string ("") in my If[] condition. What can I replace that with so that no cell is produced when the condition is not met.
Much obliged,
Gregory
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web