Eval() and ticker() - variable number of positions

I am looking for a way to buy different number of tickers based on conditions.
Something like this:
Eval(, ticker(“ABC,DEF,GHI”), ticker(“UVW,XYZ”))

So, if the condition is true I want to buy 3 tickers, but if it is false I want to buy 2 different tickers.

You can do this by using Rebalancing > Formula Weight > Position Weight Formula =1, and specifying Ideal Number of Positions = 3.