Reference › Function reference › Conditions

Conditions.raid_marks.markListText

dependency

Call as

Conditions.raid_marks.markListText(mark)

Record the dependency Conditions.raid_marks.markListText, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.

What it does

Formats a valid list of markers in priority order.

Arguments

NameTypeWhat it does
markstringA validated comma-separated list of marker names.

Returns

1stringLocalized marker names separated by commas.

Editions

Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.

It reads no game API directly.

How the addon calls it

  • Raid Mark (print)
    local text = markListText(mark)

Dependencies

Source

Conditions/raid_marks.lua, line 87. Read only in game; Duplicate makes an editable copy.

Conditions.raid_marks.markListText(mark)
    local names = {}

    for _, key in ipairs(MARK_ORDER) do
        if mark:find(key, 1, true) then names[#names + 1] = markName(key) end
    end

    return table.concat(names, ", ")

Back to Function reference