Semi-Circle Progress Bar

Hello, everyone! I might need your help, please.
I’m currently using this guide to create a circle progress bar:

I managed to achieve the tutorial’s goal, but i got the necessity to parametrize the circle length, so it could be a semi-circle bar, or even a quarter one. I kinda want to create a switch parameter, that, when set to true, will alow to change the bar length without ruining other parameters.
On screenshots you can see my current circle bar result and a desired result after the switch is set.







image

I tired almost everything i could imagine, bur still have no idea where to place a switch and what shall i connect into it.

Looking forward to get some ideas of yours.
Best regards,
Gregory.





Managed to achieve the result via the Texcoord moving, Generated Band covering the bottom part and clamping the treshold