wollte das nicht so stehen lassen
so gehts auch ohne funktion - jetzt kannst du dir aussuchen, was besser für dich paßt
Spoiler<xml xmlns="
http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="LEQ^$HMT37+o=LwwGFd?">varMinuten</variable>
<variable type="undefined" id="timeout">timeout</variable>
</variables>
<block type="procedures_defcustomreturn" id="3lkYie_Alp7;^s(TKRkC" disabled="true" x="688" y="-63">
<mutation statements="false"></mutation>
<field name="NAME">etwas tun</field>
<field name="SCRIPT">dmFyIHZpcnR0aW1lID0gbmV3IERhdGUoKTsNCg0KDQoNCg0KY29uc29sZS5sb2codmlydHRpbWUuZ2V0VGltZXpvbmVPZmZzZXQoKSk7DQoNCmlmICh2aXJ0dGltZS5nZXRUaW1lem9uZU9mZnNldCgpID09IC0xMjAgICl7cmV0dXJuIHRydWU7fSBlbHNlIHtyZXR1cm4gZmFsc2U7fTsNCg0K</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="on_ext" id="gM8KG1wjvAjfpKVHT$([" x="-13" y="-12">
<mutation items="1"></mutation>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="]yw{}m9Cow82{S-m@ZwE">
<field name="oid">javascript.0.Laufzeit1</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="}VRm0r{CtDN5XA_3kAXY">
<field name="VAR" id="LEQ^$HMT37+o=LwwGFd?" variabletype="">varMinuten</field>
<value name="VALUE">
<block type="convert_from_date" id="16~fGV!0;pxCovzn2PA">
<mutation format="false" language="false"></mutation>
<field name="OPTION">mid</field>
<value name="VALUE">
<block type="get_value" id="%x(1JsZ,BZNE^LCzaB@3">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Pooleinschaltzeit1</field>
</block>
</value>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="f2l)OI#^ZH%Bqw^QXfb"> <field name="NAME">timeout</field> <field name="DELAY">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="debug" id="_X^G{bV/1i-FK%mc[/?Z"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="_#cS~nf|K{4dOrlB?gxO"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="7C7?y+d3lj{)[7FLS0Ot"> <field name="VAR" id="LEQ^$HMT37+o=LwwGFd?" variabletype="">varMinuten</field> </block> </value> <next> <block type="control" id="B%1X.}3@]X3B(fACLurg"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Poolausschaltzeit1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_from_date" id="kl6S|_G^[@=OmHx{j!|x"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> <value name="VALUE"> <block type="math_arithmetic" id="(#(K[4X1A?.#oa6y5iIg"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id=".-.$GkrO-C,[t@PYf1oe"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="AvV$6LzaIqX$^t2n6Z!j"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="(,Xuph1F02+B(GZ_#Xe-"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="_)sBbP~8NGGHm%EYlve">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="-n:]/$O!#z1:[;B0i8js">
<field name="NUM">1</field>
</shadow>
<block type="time_get" id="xl6bN}U5p[5oFTS5KWb">
<mutation format="false" language="false"></mutation>
<field name="OPTION">object</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="g{?n-8!j{%onl;4J~S{S">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="ZEQ1ToaIy]sC|K(,@-4g">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="skYdxU5$7%zgebA{KeN"> <field name="NUM">1</field> </shadow> <block type="time_get" id="C^.RzccUxrT0I4i$[Ym|"> <mutation format="false" language="false"></mutation> <field name="OPTION">mid</field> </block> </value> <value name="B"> <shadow type="math_number" id="3(cZ9fJFb;gBpYYl,9*6"> <field name="NUM">60000</field> </shadow> </value> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="wqOB=E3OSsmQmLUjY9t;"> <field name="NUM">10</field> </shadow> <block type="math_arithmetic" id="B]]lUCBjS=-,iUw9fFeK"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=".-.$GkrO-C,[t@PYf1oe"> <field name="NUM">1</field> </shadow> <block type="get_value" id="kX}Lp9JvjpAx^@[:u0E^"> <field name="ATTR">val</field> <field name="OID">javascript.0.Laufzeit1</field> </block> </value> <value name="B"> <shadow type="math_number" id="4ulqN.nok9paXotzpOxM"> <field name="NUM">60000</field> </shadow> </value> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="Y|Qy/?8Q}|Omes(UB(S)"> <field name="NUM">1000</field> </shadow> <block type="math_arithmetic" id="rZXxZR:hQpb3+]V$,hJ">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="Qv%)OqN8z]8x^|OLba(j">
<field name="NUM">1</field>
</shadow>
<block type="convert_from_date" id="02TbiT]o_#~DYXEPz,">
<mutation format="false" language="false"></mutation>
<field name="OPTION">sid</field>
<value name="VALUE">
<block type="get_value" id="^T.0Rt=i9mom7XCqTV*w">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Pooleinschaltzeit1</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="V:3iS^vZcfy78;L/Q)DC">
<field name="NUM">1000</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
<block type="debug" id="re|Je^i4%WGjk4_)$CqW" disabled="true" x="687" y="-37">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id=":Gk=Hq1P|g/WvExVwPKw">
<field name="TEXT">test</field>
</shadow>
<block type="procedures_callcustomreturn" id=")EOrsWMFcLjsHo*BQ%y" disabled="true"> <mutation name="etwas tun"></mutation> </block> </value> </block> <block type="convert_from_date" id="RUWt}Jr2IYE,-pXSptz?" x="1288" y="987"> <mutation format="false" language="false"></mutation> <field name="OPTION">sid</field> <value name="VALUE"> <block type="get_value" id="^:c4ig=*ipN8i*RCgwy!"> <field name="ATTR">val</field> <field name="OID">javascript.0.Pooleinschaltzeit1</field> </block> </value> </block> <block type="convert_from_date" id="4V996o:WeBW61};mrYK" x="888" y="1013">
<mutation format="false" language="false"></mutation>
<field name="OPTION">sid</field>
</block>
<block type="convert_from_date" id="tdz`cOCj#@?$v2[-,?Cn" x="988" y="1113">
<mutation format="false" language="false"></mutation>
<field name="OPTION">sid</field>
<value name="VALUE">
<block type="get_value" id="uR0@B;QhURcxA%;+2frI">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Pooleinschaltzeit1</field>
</block>
</value>
</block>
<block type="text" id="WV..uFS##PXRS5Teq54Y" x="838" y="1162">
<field name="TEXT"></field>
</block>
</xml>
falls es für dich paßt, bitte [gelöst-]- in die erste überschrift dieses threads voranstellen
gruß