Add missing truthiness documentation

This commit is contained in:
Benjamin 2026-01-12 21:04:26 +01:00
parent 1910c58c49
commit 7c88d6d7e7
22 changed files with 22 additions and 0 deletions

View file

@ -7,6 +7,7 @@
The RID [Variant] type is used to access a low-level resource by its unique ID. RIDs are opaque, which means they do not grant access to the resource by themselves. They are used by the low-level server classes, such as [DisplayServer], [RenderingServer], [TextServer], etc.
A low-level resource may correspond to a high-level [Resource], such as [Texture] or [Mesh].
[b]Note:[/b] RIDs are only useful during the current session. It won't correspond to a similar resource if sent over a network, or loaded from a file at a later time.
[b]Note:[/b] In a boolean context, an RID will evaluate to [code]false[/code] if it has the invalid ID [code]0[/code]. Otherwise, an RID will always evaluate to [code]true[/code]. This is equivalent to calling [method is_valid].
</description>
<tutorials>
</tutorials>