<ac:layout>
<ac:layout-section ac:type="two_right_sidebar">
<ac:layout-cell>
<ac:structured-macro ac:macro-id="79324b1e-4e05-4084-a309-c9acb69493f1" ac:name="panel" ac:schema-version="1">
<ac:parameter ac:name="bgColor">#ffffff</ac:parameter>
<ac:parameter ac:name="title">Q</ac:parameter>
<ac:rich-text-body>
<p>Do variables need a data type?</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="2f49fb56-c5e1-4626-abbf-1f157d021ff8" ac:name="panel" ac:schema-version="1">
<ac:parameter ac:name="bgColor">#ffffff</ac:parameter>
<ac:parameter ac:name="title">A</ac:parameter>
<ac:rich-text-body>
<p>If an assignment do create a variable, the variable gets implicitly the data type based on the value that has been assigned. It is also possible that avariable is changing its data type with the next assignment.</p>
<p>Example code:</p>
<pre>mystring = “Hello“ -- is of type string</pre>
<pre>mynumber = 5 -- is of type number</pre>
<pre>dynvar = 5 -- is of type number now</pre>
<pre>dynvar = “Hello“ -- is of type string now</pre>
</ac:rich-text-body>
</ac:structured-macro>
</ac:layout-cell>
<ac:layout-cell>
<ac:structured-macro ac:macro-id="82922419-8837-422c-919a-2a3b0f4fb627" ac:name="panel" ac:schema-version="1">
<ac:parameter ac:name="bgColor">#ffffff</ac:parameter>
<ac:parameter ac:name="title">See also...</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="750fff8e-3c97-4992-a452-97f5074784b6" ac:name="contentbylabel" ac:schema-version="3">
<ac:parameter ac:name="showLabels">false</ac:parameter>
<ac:parameter ac:name="spaces">@self</ac:parameter>
<ac:parameter ac:name="showSpace">false</ac:parameter>
<ac:parameter ac:name="operator">AND</ac:parameter>
<ac:parameter ac:name="cql">label = "netscript" and label = "variable" and space = currentSpace()</ac:parameter>
<ac:parameter ac:name="labels">netscript variable</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:placeholder>Add labels to the macro to link related FAQ pages...</ac:placeholder>
</p>
</ac:rich-text-body>
</ac:structured-macro>
</ac:layout-cell>
</ac:layout-section>
</ac:layout>
Manage space
Manage content
Integrations