<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><span style="color: rgb(32, 33, 34); font-family: sans-serif;
font-size: 14px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">Tay jsem si
kdysi naběhl.... viz níže<br>
</span></p>
<p><span style="color: rgb(32, 33, 34); font-family: sans-serif;
font-size: 14px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">You can't
change the value of Variables. If you update the value of a
variable inside brackets, the new value will be lost as soon as
you exit that scope.</span></p>
<p><a class="moz-txt-link-freetext" href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Conditional_and_Iterator_Functions">https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Conditional_and_Iterator_Functions</a><br>
</p>
<p>Jirka<br>
</p>
<div class="moz-cite-prefix">Dne 03.10.2022 v 18:58 Jaroslav Buchta
napsal(a):<br>
</div>
<blockquote type="cite"
cite="mid:ecc979f9-9251-fdb1-2c51-555afc7e9a0c@hascomp.cz">Kdyz
napisu
<br>
<br>
difference()
<br>
{
<br>
w = n*dist;
<br>
if (w <= 25)
<br>
{
<br>
w = 25;
<br>
}
<br>
plate(w);
<br>
if(go != 0)
<br>
{
<br>
for (i=[0:2])
<br>
{
<br>
translate([ext+go+i*dist, -ov, h-gh])
<br>
cube([gw, l+2*ov, 5]);
<br>
}
<br>
}
<br>
}
<br>
<br>
nevykresli nic, kdyz w <= 25, v opacnem pripade ano.
<br>
<br>
Uz jsem zkousel snad vsechny konstrukce a varianty s else ale
stale stejne.
<br>
<br>
Neco mi uniklo nebo to takto proste nejde? Chci hodnotu zarovnat,
asi to napisu s ?: ale je to divne...
<br>
<br>
<br>
_______________________________________________
<br>
HW-list mailing list - sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
<br>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
</blockquote>
</body>
</html>