if( strPos( %var, "@Pig ") => 0 )
If you want case-insensitivity, use striPos instead.
Also, if you want to get the text after the occurrence of "@Pig ", use:
if( ( %pos = strPos( %var, "@Pig ") ) => 0 )
%after = getSubStr( %var, %pos + strLen( "@Pig " ), strLen( %var ) )