Try using:
require GT::SQL::Condition;
my $cond = GT::SQL::Condition->new( 'XYX', 'IS NOT', 'NULL', 'isValidated', '=', 'Yes');
Then get rid of { ... } and use $cond
If it doesn't work change 'NULL' to \'NULL' ....I can't remember if it needs a reference or not.
require GT::SQL::Condition;
my $cond = GT::SQL::Condition->new( 'XYX', 'IS NOT', 'NULL', 'isValidated', '=', 'Yes');
Then get rid of { ... } and use $cond
If it doesn't work change 'NULL' to \'NULL' ....I can't remember if it needs a reference or not.