Best way to convert this??

Coool thanks!!! I wrote a different thing but I guess this is better :smiley: