I am getting "the condition has length > 1 and only the first element will be used".
How do I get the syntax right ?