class Byebug::ConditionCommand
def execute
def execute return print ConditionCommand.help(nil) unless @match[1] breakpoints = Byebug.breakpoints.sort_by{|b| b.id } largest = breakpoints.inject(0) do |tally, b| tally = b.id if b.id > tally end return print "No breakpoints have been set.\n" if 0 == largest return unless pos = get_int(@match[1], "Condition", 1, largest) b = breakpoints.select{ |b| b.id == pos }.first b.expr = @match[2] if b end