סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > VariableMap > getVariableById
שיטת VariableMap.getVariableById()
מוצאים את המשתנה לפי המזהה הנתון ומחזירים אותו. אם הערך לא נמצא, מוחזר null.
Signature:
getVariableById(id: string): VariableModel | null;
פרמטרים
פרמטר |
סוג |
תיאור |
id [מזהה] |
מחרוזת |
המזהה שצריך לבדוק. |
החזרות:
VariableModel | null
המשתנה עם המזהה הנתון.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-10 (שעון UTC).
[null,null,["עדכון אחרון: 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."]]],[]]