blockly > VariableMap > getVariableById
VariableMap.getVariableById() yöntemi
Verilen kimliğe göre değişkeni bulup döndürün. Bulunamazsa null değerini döndürün.
İmza:
getVariableById(id: string): VariableModel | null;
Parametreler
Parametre |
Tür |
Açıklama |
id |
dize |
Kontrol edilecek kimlik. |
Şunu döndürür:
VariableModel | boş
Verilen kimliğe sahip değişken.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-10 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-10 UTC."],[[["The `getVariableById` method searches for a variable within the VariableMap using its unique ID."],["If a variable with the given ID is found, the method returns the corresponding VariableModel object; otherwise, it returns null."],["This method accepts a single string parameter representing the variable's ID to be located."]]],[]]