isglobal

Vérifie si une variable est globale.

📝 Syntaxe

  • state = isglobal(variable_name)

📥 Argument d'entrée

  • variable_name - une chaîne : nom de la variable.

📤 Argument de sortie

  • state - un booléen : vrai si la variable est globale.

📄 Description

isglobal renvoie vrai si variable_name a été déclarée comme variable globale, et faux sinon.

💡 Exemple

y = 3;
isglobal y
global b
b = 3
isglobal b
clear global b
isglobal b

🔗 Voir aussi

clear, who, global.

🕔 Historique

Version
📄 Description

1.0.0

version initiale

Last updated

Was this helpful?