From: Stuart Clarke Date: 2008-11-07T02:23:40+09:00 Subject: Data output I am processing data from an array which basically involves me searching for specific information and outputting the results that match eg. ....... if data == 100 puts "#{data.time_written}" I have just inserted a step which adds some additional criteria. This states if you find data that equals 100 does it happens more than 10 times in one day. This all works fine. What i want is some kind of nested if statement thats does the following: if data == 100 if data happens more than 5 times in one day print out the results of all the data that equals 100 but highlight (colour code, italics etc)the data within the results that happens more than 5 times in a day. An example of the results might be 100 monday - - - BOLD 100 monday - - - BOLD 100 monday - - - BOLD 100 monday - - - BOLD 100 monday - - - BOLD 100 monday - - - BOLD 100 tuesday - - - NORMAL Hope this makes sense. Regards -- Posted via http://www.ruby-forum.com/.