रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > VariableMap > getVariableById
वैरिएबलमैप.getVariableById() तरीका
दिए गए आईडी से वैरिएबल ढूंढें और उसे वापस करें. वैल्यू न मिलने पर, शून्य वैल्यू दिखाएं.
हस्ताक्षर:
getVariableById(id: string): VariableModel | null;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
आईडी |
स्ट्रिंग |
वह आईडी जिसकी जांच करनी है. |
लौटाए जाने वाले प्रॉडक्ट:
VariableModel | शून्य
दिए गए आईडी वाला वैरिएबल.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]],[]]