• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How to compare variables in .tpl template

Scheduled Pinned Locked Moved Solved Technical Support
3 Posts 2 Posters 297 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Daniel KückD Offline
    Daniel KückD Offline
    Daniel Kück
    wrote on last edited by
    #1

    Hey Mates,

    maybe this has already been discussed.
    But is there any chance to compare two variables in the .tpl files?
    E.g.
    <!-- IF ../test === "hello world" -->
    <p>Hello World</p>
    <!-- ENDIF ../test === "hello world" -->

    Thanks a lot.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    Should be possible see here https://github.com/benchpressjs/benchpressjs/blob/master/docs/operators.md

    1 Reply Last reply
    1
  • Daniel KückD Offline
    Daniel KückD Offline
    Daniel Kück
    wrote on last edited by
    #3

    Awesome sometimes it's as simple as that. Thanks a lot.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development