השם של המשתנה. השם הזה חייב להיות ייחודי לכל המשתנים והפרוצדורות.
opt_type
string | null
(אופציונלי) סוג המשתנה, למשל 'int' או 'string'. השם לא חייב להיות ייחודי. אפשר להשתמש ב-Field_variable כדי לסנן משתנים לפי הסוג שלהם. כברירת מחדל, הערך יהיה '', שהוא סוג ספציפי.
opt_id
string | null
(אופציונלי) המזהה הייחודי של המשתנה. ברירת המחדל היא UUID.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-05-16 (שעון UTC)."],[[["The `createVariable()` method creates a new variable within the Blockly Workspace with a specified name, optional type, and ID."],["Variable names must be unique, while types can be shared and are used for filtering; IDs are auto-generated if not provided."],["The method returns a `VariableModel` object representing the newly created variable, allowing further manipulation."]]],[]]