Reputation: 640
I have a plugin called "query" and it is called via the format: {{ query:run query="SELECT * FROM table" }}
I want to make repetitive call to the same plugin depending on the output of the previous call. The code is as follows:
{{ if { query:run query="SELECT left_bar form default_blog_meta where blog_id == {{query:run query='SELECT id from default_blog where slug = {variables:seg4}' }} "} }}
{{ code }}
{{ else }}
{{ code }}
It always goes to else condition as inner calls are not getting executed.
Upvotes: 0
Views: 254
Reputation: 30766
NO!
Lex is not a replacement for PHP. If you want to do that, put your query into your own plugin so you have a programming language to play with, instead of trying to make a tag representation system do it for you.
Please. Stop it.
Upvotes: 1