// adding code after a condition find_line_with('if (condition)') move(1) write('show_message("Patch applied!")') // adding more conditions to an if statement move_to_start() write('added_condition = true') find_line_with('if (condition)') write_and_condition('added_condition') // removing unwanted code move_to_end() reverse_find_line_with('I hope') write_before('if false {') write_last('}') // https://github.com/skirlez/g3man/wiki/Introduction-to-gmlp
condition = true; if (condition) { show_message("Condition met!"); } else { show_message("Condition not met..."); show_message("I hope no one patches this out"); }