I have emp records records that look like this:
name, id, gender, itemvalue
steve, 123, M, (3,4,5)
bond, 456, M, (5,4)
James, 345, F, (4,7)
In another table I have references of the itemvalues like this:
3='test'
4='coder'
5='admin'
Now in the record value, How do I check a single value from itemvalues
?
For example, check whether Steve's itemvalue is 5 or not in ColdFusion?
<cfif steve.itemvalue EQ 5>
do this
<cfelse>
if not 5 do this
</cfif>