<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									function does not work - General				            </title>
            <link>https://www.indi-an.com/en/community/general/function-does-not-work/</link>
            <description>Indi.An Germany Discussion Board</description>
            <language>en-US</language>
            <lastbuilddate>Tue, 08 Sep 2026 21:39:49 +0000</lastbuilddate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: function does not work</title>
                        <link>https://www.indi-an.com/en/community/general/function-does-not-work/#post-258</link>
                        <pubdate>Tue, 30 Dec 2025 12:19:42 +0000</pubdate>
                        <description><![CDATA[Great job debugging that! For future reference in QuickHMI, if you ever find a property isn&#039;t behaving, logging it to the console with console.log(typeof let_ertek1) is a lifesaver to see if...]]></description>
                        <content:encoded><![CDATA[<p>Great job debugging that! For future reference in QuickHMI, if you ever find a property isn't behaving, logging it to the console with console.log(typeof let_ertek1) is a lifesaver to see if it's actually a string or a boolean.</p>]]></content:encoded>
						                            <category domain="https://www.indi-an.com/en/community/general/">General</category>                        <dc:creator>jemsthomasbr</dc:creator>
                        <guid ispermalink="true">https://www.indi-an.com/en/community/general/function-does-not-work/#post-258</guid>
                    </item>
				                    <item>
                        <title>RE: function does not work</title>
                        <link>https://www.indi-an.com/en/community/general/function-does-not-work/#post-236</link>
                        <pubdate>Fri, 28 Mar 2025 06:48:09 +0000</pubdate>
                        <description><![CDATA[I solved the problem: 
let_ertek1= mainInterface.getProperty(&quot;Oldal.chb1.IsChecked&quot;);if (let_ertek1 == &quot;true&quot; ){valt1=1}else {valt1=-1}]]></description>
                        <content:encoded><![CDATA[<p>I solved the problem: </p>
<p>let_ertek1= mainInterface.getProperty("Oldal.chb1.IsChecked");<br /><br />if (let_ertek1 == "true" )<br />{valt1=1}<br />else <br />{valt1=-1}</p>]]></content:encoded>
						                            <category domain="https://www.indi-an.com/en/community/general/">General</category>                        <dc:creator>Norbert Bene</dc:creator>
                        <guid ispermalink="true">https://www.indi-an.com/en/community/general/function-does-not-work/#post-236</guid>
                    </item>
				                    <item>
                        <title>function does not work</title>
                        <link>https://www.indi-an.com/en/community/general/function-does-not-work/#post-210</link>
                        <pubdate>Mon, 24 Mar 2025 13:02:08 +0000</pubdate>
                        <description><![CDATA[The task would be to set the value of a variable to +1 and -1 depending on the state of a checkbox. 

I want to use the following script:


function test(){
const increment = mainInter...]]></description>
                        <content:encoded><![CDATA[<pre contenteditable="false">The task would be to set the value of a variable to +1 and -1 depending on the state of a checkbox. 

I want to use the following script:


function test(){
const increment = mainInterface.getProperty("Oldal.chb1.IsChecked") ? 1 : -1; 
mainInterface.setVariable("mbus.var1",increment);
}

The function continuously returns a value of "+1" regardless of the state of the checkbox
What could be wrong?

</pre>]]></content:encoded>
						                            <category domain="https://www.indi-an.com/en/community/general/">General</category>                        <dc:creator>Norbert Bene</dc:creator>
                        <guid ispermalink="true">https://www.indi-an.com/en/community/general/function-does-not-work/#post-210</guid>
                    </item>
							        </channel>
        </rss>