When I set target temp of extruder to something and then read it after it returns the value set before. It doesn’t wait for the temperature I set. I know I can just put the wait gcode in the if statement and wait for the min_change_temp and otherwise wait for the target_temp. I just wan’t to report it as bug or maybe if it isn’t than what is wrong.
In a macro all variables / commands etc. are evaluated when you call the macro. Even if you now change such a variable within the same macro, it will always return its initial value.
You need to define a separate macro to re-query the variable and call this macro from your initial macro.