Es.exists

From EventScripts Community Encyclopedia



Method: exists

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Checks for the existence of item specified by type and returns the result. 0 means it does not exist and 1 means it does exists. This is the Python equivalent of: http://www.eventscripts.com/pages/es_exists

Arguments

  • type - type of item to be checked.
    • keygroup
    • key
    • variable
    • command
    • userid
    • script
    • block
    • saycommand
    • clientcommand
    • keyvalue
    • map
  • keygroup - keygroup name to use for key, or keyvalue check only. Otherwise do not use this parameter.
  • key - key name to use for keyvalue check only. Otherwise do not use this parameter
  • name - name or id of item to be checked.


Examples

hasvar = es.exists('variable','mp_friendlyfire')
hasthisuser = es.exists('userid',34)
is_script_loaded = es.exists('script','mugmod')

Notes


See Also

blog comments powered by Disqus