blockly > BlockSvg > setOutput
BlockSvg.setExit() yöntemi
Bu bloğun bir değer döndürüp döndürmeyeceğini belirleyin.
İmza:
setOutput(newBoolean: boolean, opt_check?: string | string[] | null): void;
Parametreler
Parametre |
Tür |
Açıklama |
newBoolean |
boolean |
Çıkış varsa doğru değerini döndürür. |
opt_check |
dize | dize[] | boş |
(İsteğe bağlı) Döndürülen tür veya döndürülen türlerin listesi. Herhangi bir tür döndürülüyorsa (ör. get değişkeni) boş veya tanımsız. |
Şunu döndürür:
geçersiz
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-11 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-11 UTC."],[[["The `setOutput` method determines if a block returns a value, indicated by the `newBoolean` parameter."],["It optionally accepts `opt_check` to specify the returned data type(s), allowing for flexibility with \"any type\" returns using null or undefined."],["This method is part of the `BlockSvg` class and does not return any value (void)."]]],[]]