Conditional logic in Galaxy workflow

I’d like to write a workflow that counts the number of sequences in a file and if there are 4 or more, sets a parameter of a downstream tool (iqtree) to 1000, else does not set this parameter. Is this possible (Galaxy 20.09)?