Error code: unexpected token 'if'


I am getting the error code: syntax error unexpected token ‘if’

I have imported my prusa mini config file so there is obviously an error in the header or footer gcode.

Has anyone come across this and able to suggest a fix?

Many thanks

Hi @Martyn … if you right-click and export your workspace and share it with me (email to sa @ grid dot space) I’ll find the problem.

I reviewed the converted profile and found that Prusa’s [variable] substitution needs to be updated to use Kiri:Moto’s {variable} substitution which is documented here