Create a button?

Hello,

I am inexperienced with Mathematica, currently trying to use it as a tool for balancing a game. I want to create a button (with attached action) and for this purpose I looked up the function button and copied the examples into a notebook only to have nothing happen. Well, the cell brackets become bold, I am assuming it means it’s processing the entry. It remains as such without any output. I have tried copy pasting various examples with none working.

I copied the following line from the online help/documentation on the function “Button”

Button["Click Here", Print[10!]]

and got no output (button or otherwise)

appreciate your help,
thank you
Akhilesh Bhartia

Your input works fine on my system. I don’t know what you are doing wrong.

Don’t copy stuff from the documentation. Try typing it out yourself. Do you still see the problem? Are you using Mathematica on the Desktop or online?

When you copy stuff from the documentation, it might contain some special formatting. This can be confusing at first.