Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Formatting Dynamic Output
Replies: 3   Last Post: Nov 5, 2012 6:40 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Gregory Lypny

Posts: 247
Registered: 3/14/05
Formatting Dynamic Output
Posted: Nov 2, 2012 12:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.