item_id optional default (empty = current item)The item to read the field from (a 32-character long id). Leave empty, or pass the literal current, to use the item currently being displayed - in a listing each row in turn. Until November 2026 the result was cached, so in a listing with an empty id every row got the answer of the first row; on an install not updated since pass the id of the row itself - the field id.............. of the row, written in braces, as the first parameter (xid gives the item of the page URL, the same in every row).
field optional default (empty)The field id (or its _#ALIAS) whose values are tested, for example abstract........ or category.......1. If the item does not have this field, else_text is printed.
var optional default (empty)The value to look for. ifeqfield prints text when at least one value of the field equals var exactly (case-sensitive), otherwise else_text. The alias _#1 in either branch is replaced with this value.
text optional default (empty)Printed when the field contains var. May contain any AA expression and the alias _#1 (which expands to var).
else_text optional default (empty)Printed when the field does not contain var, or when the item or field is missing. May contain any AA expression and the alias _#1 (which still expands to var).
{ifeqfield:5726c2c6b035d7aab450d1794e9e90d7:abstract........:red:matched:not matched}
{ifeqfield:5726c2c6b035d7aab450d1794e9e90d7:abstract........:green:matched:not matched}
{ifeqfield:5726c2c6b035d7aab450d1794e9e90d7:abstract........:red:value is _#1:none}
{ifeqfield:5726c2c6b035d7aab450d1794e9e90d7:integer.........:100:Y:N}
{ifeqfield:5726c2c6b035d7aab450d1794e9e90d7:nosuchfield....:red:Y:N}
{ifeqfield:00000000000000000000000000000000:abstract........:red:Y:N}
{ifeqfield::category........:news:in news: not in news}
class="{ifeqfield:5726c2c6b035d7aab450d1794e9e90d7:abstract........:red:is-red:is-other}"