T
Taylor Strait
I want to check two conditions. If EITHER of them are true I want to
proceed. Unfortunately what I have is returning true no matter what:
if (@unit.custodian_id == session[erson_id]) or (session[erson_role]
== 'admin')
How can I test for EITHER condition without repeating myeself? Is my
only solution to use elsif?
proceed. Unfortunately what I have is returning true no matter what:
if (@unit.custodian_id == session[erson_id]) or (session[erson_role]
== 'admin')
How can I test for EITHER condition without repeating myeself? Is my
only solution to use elsif?