Sorry, I'm not sure how to properly work what I want to achieve, although that's mostly the problem. I'm sure the answer is simple and I lack the grammar...
I have an image tag bound to an object via Angular. The object has two properties - one is "FileName" and contains the name of the image (e.g. myimage.jpg). The other is "FilePath" and it's the problem here. FilePath doesn't contain an actual path, it has a number. So for example:
22 = /images/ 43 = /photos/ 66 = /thumbnails/
and so on. So in my image tag I want to do something like this:
<img src="FilePath + FileName" /> (Yes I know that's not valid syntax)
But since FilePath isn't a path, I need some sort of way, such as a switch or an if or a converter/filter type of setup so I can determine the correct path from the number and then marry it up to the image name.
Does that make sense?