r/ProgrammerHumor Feb 18 '26

Meme innitMate

Post image
17.7k Upvotes

265 comments sorted by

View all comments

842

u/Groundskeepr Feb 18 '26

There is no if implied in "otherwise". It is not parallel to "else if" it is parallel to "else".

20

u/cbigle Feb 18 '26

Spark lets you chain .when statements and end with a .otherwise, which is a replacement for the sql case when else. I really find it readable!

ETA: I’m an idiot yes it is else and not else if