#sintax issue

1 messages · Page 1 of 1 (latest)

sonic forge
#

I am writing a test program to set a value
and post the value to the the terminal

[gcode_macro TEST_1]

gcode:
{% set xnow = 5 %}
{ action_respond_info('%s' % _xnow) }

any help would be appreciated

winged sage
#

why do you have xnow and _xnow?

#

also I think (but am not positive) that action_respond_info takes a tuple, so you need (xnow) instead of xnow.