Home  >  Q&A  >  body text

Template ternary operator invalid

The ternary operator written after value does not respond, but replacing {$vo.title} with the ternary operator works. What is the reason? 3HD5C9{VL[~FDI~1@QRQHDX.png

  2237 days ago1819

reply all(4)I'll reply

  • 驱魔鮔

    驱魔鮔2019-01-07 21:12:35

    is selected, your code is wrong

    reply
    0
  • 天蓬老师

    天蓬老师2018-10-05 08:26:05

    View the corresponding php file generated in the compilation directory

    reply
    0
  • 神沐

    神沐2018-09-28 15:55:00

    You haven’t made it clear whether it’s an attribute or a value of the tag. If it’s a value or other attribute value, you have to write it clearly.

    reply
    0
  •  

     2018-09-27 23:44:01

    I can print out both $vo.gid and $data.item.gid, and there is data in them, but they don’t take effect

    reply
    0
  • Cancelreply