Loops, conditional jumps and parameters are not supported by the standard GCode as it is used by GRBL, TinyG, G2core etc..The new GrblGru version V3.43 now provides an 'Advanced GCode' with the mentioned features.