Skip to main content

Метод Hyperlink:__eq

Метод используется для определения эквивалентности двух объектов Hyperlink.

Пример​


table_0 = document:getBlocks():getTable(0)
cell_00 = table_0:getCell(DocumentAPI.CellPosition(0, 0))
cell_01 = table_0:getCell(DocumentAPI.CellPosition(0, 1))
local hyperlink_00 = cell_00:getHyperlink()
local hyperlink_01 = cell_01:getHyperlink()
if (hyperlink_00 and hyperlink_01) then
print(hyperlink_00:__eq(hyperlink_01))
end