Function question

It works now!
Thank you @Steve-Mcl and @Colin for the second option :slight_smile: