methods/ai_client.rb
# Make sure user ID is greater than 100
Make sure user ID is greater than 100
Make sure user ID is greater than 100
def check_valid_uid(options,answer)
  correct = 1
  if answer.match(/[a-z,A-Z]/)
    correct = 0
  else
    if Integer(answer) < 100
      correct = 0
      handle_output(options,"UID must be greater than 100")
    end
  end
  return correct
end
def check_valid_uid ( options , answer ) correct = 1 if answer . match ( / [a-z,A-Z] / ) correct = 0 else if Integer ( answer ) < 100 correct = 0 handle_output ( options , "UID must be greater than 100" ) end end return correct end
Make sure user ID is greater than 100
Make sure user ID is greater than 100
options
<not_specific>
answer
<not_specific>