<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Andreas,</p>
<p>If required, the variable UI (and serialization to
ini/project/...) could made typable.</p>
<p>But for this use case, add a variable with 0 (or 1) and use</p>
<p>CASE WHEN @debug THEN<br>
'We are debugging'<br>
ELSE<br>
'No debug'<br>
END<br>
</p>
<p>That should just work<br>
</p>
<p>Matthias<br>
</p>
<div class="moz-cite-prefix">On 6/10/20 5:26 PM, Andreas Neumann
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:e2e5cb6d1669ba9181d5143f3d608a2d@carto.net">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hi,</p>
<p>I have a question about the variables that can be defined on
different scopes. They are most of the times (or always?)
strings, if I manually define them - right? Some of the
automatic variables might be of a different type (like date,
layer, etc.)</p>
<p>Can I also manually define a "typed" variable? E.g. a boolean
true instead of 'true' as a string?</p>
<p>That way I could directly use variables without having to add
CASE WHEN END statements ...</p>
<p>My use case would be to have a boolean "debugging" variable. If
it is set to true, then certain parts of the form with internal
IDs would be visible, if set to false, they would be hidden.</p>
<p>Thanks,</p>
<p>Andreas</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
</body>
</html>