Rearrange the execution of code snippets in a liquid file according to some conditions

Highlighted
Shopify Partner
27 0 2

Hi guys, 

I ran into a problem and I was hoping if I could get some help here.

Actually the problem is, I have 3 block of code snippet in my liquid file. I get the priority of execution of those code block from metafield. But I'm not sure how I should implement it. 

I need to implement those code blocks like functions in programming which I can call on verifying the condition.

Is there any efficient way of doing it?

Hope I am clear on my requirement part.

Regards,

Navin

0 Likes