#!/usr/bin/ruby ip = "curl -sk ifconfig.me" puts "Please enter your IP" input = gets.chomp if input == "1.2.3.4" puts "my ip" else puts "not my ip #{input}" end