Files

473 B
Raw Permalink Blame History

MercanRey6.js — hasTag() (satır 78)

← MercanRey6.js · ← Master

function hasTag(profile, tag)
{
    if (profile == null || profile.tags == null)
    {
        return false;
    }

    var size = listSize(profile.tags);

    for (var i = 0; i < size; i++)
    {
        if (String(listGet(profile.tags, i)) === tag)
        {
            return true;
        }
    }

    return false;
}