Looked around on here and on the web but can't seem to find similar -- I'm sure there must have been but guess I'm not using sufficiently similar search syntax...
Created a flow to extract the last 4 characters from a filename when dropped into a library. Variables hold the filename, total length, number of characters to extract, etc. Filenames follow this convention: 601999999 - 0102.pdf. Once extracted, there's a 6-case Switch action, with the 7th as default. Depending on the value, it sends an email to different people.
Flow works just fine at extracting the last four. Result in above example is 0102. It pulls correctly into the Switch.
However, it doesn't match the matching Case:
I believe it has something to do with text vs number (string v integer), but can't seem to work it out.
Here's the Set Variable expression: