Core Function isVarDLLStruct
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> isVarDLLStruct( $variable ) </pre> === Description === Check if a variable holds a DLLStruct. === Parameters === ==== variable ==== The variable to check. === Return ...") |
(→Return Value) |
||
(One intermediate revision by one user not shown) | |||
Line 15: | Line 15: | ||
=== Return Value === | === Return Value === | ||
− | Success: Returns | + | Success: Returns true. |
− | Failure: Returns | + | Failure: Returns false. |
=== Remarks === | === Remarks === | ||
Line 26: | Line 26: | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
− | $var1 = " | + | $var1 = DLLStructCreate("char a;"); |
println( "Is it?: " . isVarDLLStruct($var1) ); | println( "Is it?: " . isVarDLLStruct($var1) ); | ||
+ | // Alternative | ||
+ | println( $var1 is DLLStruct ); | ||
+ | // Alternative | ||
+ | println( $var1 ~~ DLLStruct ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Latest revision as of 10:42, 29 August 2013
isVarDLLStruct( $variable )
Contents |
Description
Check if a variable holds a DLLStruct.
Parameters
variable
The variable to check.
Return Value
Success: Returns true.
Failure: Returns false.
Remarks
None.
Example
$var1 = DLLStructCreate("char a;"); println( "Is it?: " . isVarDLLStruct($var1) ); // Alternative println( $var1 is DLLStruct ); // Alternative println( $var1 ~~ DLLStruct );