@arcteo said:
Hello.
I'm trying to print out two numbers from a script where the user inputs a wall thickness and wall height. An inputbox takes the two prompts and is supposed to spit it out on the screen.
UI.messagebox accepts 1 or 2 variables. The first is a text string. The second determines what buttons appear. Within the text string, you need to enclose the thickness and height variables in curly brackets {} preceded by a # symbol as demonstrated below
UI.messagebox("#{thickness}, #{h}",MB_OK)
Option 2 would be to convert the thickness and height variables to strings and add them
UI.messagebox(thickness.to_s + ', ' + h.to_s)