2008/12/2 Fernando Giannetti <fgiannetti / gmail.com>:
> if anArray.include?(id)
>   state='YES'
> else
>   state='NOT'
> end

state = if anArray.include?(id)
    'YES'
  else
    'NO'
  end

or

  state = anArray.include?(id) ? 'YES' : 'NO'

Farrel
---
Aimred - Ruby Development and Consulting
http://www.aimred.com