ok, I've found working solution using strdist(). If the result is less than
1.0 - these strings differ somehow.
{!func}if(lt(strdist(\"${gender}\",\"male\",edit),1),0,1)
this will let me go further with my logic.
Best regards,
Dariusz Wojtas
On Thu, Jan 18, 2018 at 3:43 PM, Dariusz Wojtas
Hi,
I am using LTR, and writing custom features.
What I want to do, is conditional calculation, based on string comparison.
Something like
if ($gender == 'test') {
calculation 1 (for test just return 0)
} else {
calculation 2 (for test just return 1)
}
'gender' is param passed in th