This MR migrats ISL to use switch instead of if-else ladders where possible to help improve readability
switch