Smart M.App discussions

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Posts: 59
Registered: ‎04-19-2016

IF ELSE operator and how to run one of many sub-models

I have the following sub-model which I need help with.


How do I only run one of 6 sub-models, based on the value on a port e.g. "Number_of_files"?


Basically if "Number_of_files" is 3, I only want to run sub-model for "3 Images" and then use the output of the sub-model etc.


I know there is an IF ELSE operator but not sure as to how to use it in this case?


Please help as soon as possible!



Technical Evangelist
Posts: 133
Registered: ‎07-04-2016

Re: IF ELSE operator and how to run one of many sub-models

Dear Jens,


Please look at this model in our Spatial Recipes to get the idea how you can perform that.



Marina Vardovska



Kind Regards,
Marina Vardovska
Hexagon Geospatial Support