Twig 中文文档
  • 关于
  • Twig 1.x
  • Twig 2.x
    • 介绍
    • 安装
    • Twig for 模板设计师
    • Twig for 开发者
    • 扩展 Twig
    • Twig 内部机制
    • 弃用功能
    • Twig 方法
    • 编码标准
    • API
    • 附录*核心扩展
      • 标签(Tags)
        • 自动转义 autoescape
        • 块 block
        • do
        • embed
        • extends
        • filter
        • flush
        • for
        • from
        • if
        • import
        • include
        • macro
        • sandbox
        • set
        • spaceless
        • use
        • verbatim
        • with
      • 过滤器(Filters)
        • abs
        • batch
        • capitalize
        • convert_encoding
        • date
        • date_modify
        • default
        • escape
        • first
        • format
        • join
        • json_encode
        • keys
        • last
        • length
        • lower
        • merge
        • nl2br
        • number_format
        • raw
        • replace
        • reverse
        • round
        • slice
        • sort
        • split
        • striptags
        • title
        • trim
        • upper
        • url_encode
      • 函数(Functions)
        • attribute
        • block
        • constant
        • cycle
        • date
        • dump
        • include
        • max
        • min
        • parent
        • random
        • range
        • source
        • template_from_string
      • 测试(Tests)
        • constant
        • defined
        • divisible by
        • empty
        • even
        • iterable
        • null
        • odd
        • same as
      • Operators(操作符)
  • 附录*资料整理
Powered by GitBook
On this page

Was this helpful?

  1. Twig 2.x
  2. 附录*核心扩展

Operators(操作符)

Previoussame asNext附录*资料整理

Last updated 5 years ago

Was this helpful?

(+, -, /, %, //, *, **)

(and, or, not, (), b-and, b-xor, b-or)

(==, !=, <, >, >=, <=, ===, starts with, ends with, matches)

(.., |, ~, ., [], ?:)

in
is
Math
Logic
Comparisons
Others