Creating a stat based on two strings

Hi,
i build a column which collects the hole cards of villain (in case of a showdown) as a string.
E.g.: AKo2296oK3s...
Now i want to use this column for creating a stat which checks if for a certain hand and gives back a string.
if((strpos(str_hands, '22') > 0), '22', '__')
This one works fine - i get '22' back in case '22' is in the column str_hands, otherwise i get '__' back.
Now i am wondering if i could check within one stat more than one hand - '22', 'AKo'
But this doesn't work:
if((strpos(str_hands, '22') > 0), '22', '__') || if((strpos(str_hands, 'AKo') > 0), 'AKo', '__')
same with this one:
substr(if((strpos(str_hands, '22') > 0), '22', '__'), 01) || substr(if((strpos(str_hands, 'AKo') > 0), 'AKo', '__'), 01)
Is it simply not possible or is there just a minor mistake i am doing due to my lack of programming skills?
Thanks for your help!
miljön
i build a column which collects the hole cards of villain (in case of a showdown) as a string.
E.g.: AKo2296oK3s...
Now i want to use this column for creating a stat which checks if for a certain hand and gives back a string.
if((strpos(str_hands, '22') > 0), '22', '__')
This one works fine - i get '22' back in case '22' is in the column str_hands, otherwise i get '__' back.
Now i am wondering if i could check within one stat more than one hand - '22', 'AKo'
But this doesn't work:
if((strpos(str_hands, '22') > 0), '22', '__') || if((strpos(str_hands, 'AKo') > 0), 'AKo', '__')
same with this one:
substr(if((strpos(str_hands, '22') > 0), '22', '__'), 01) || substr(if((strpos(str_hands, 'AKo') > 0), 'AKo', '__'), 01)
Is it simply not possible or is there just a minor mistake i am doing due to my lack of programming skills?
Thanks for your help!
miljön