<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Aha, uz jsem kdysi taky narazial ale i
jiny identifikator pro novou hodnotu jsem zkousel ale nejak to
vubec neprovede to za blokem if.</div>
<div class="moz-cite-prefix">Tohle je reseni: <br>
</div>
<div class="moz-cite-prefix"> ww = n*dist;<br>
w = (ww <= 25 ? 25 : (ww <= 50 ? 50: (ww <= 75 ?
75 : 100)));</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Kazdopadne vyvoj se nejak zda se
zaseknul, pritom tak super SW...</div>
<div class="moz-cite-prefix"> <br>
</div>
<div class="moz-cite-prefix">Dne 03.10.2022 v 19:47 Nesvacil Jiri
napsal(a):<br>
</div>
<blockquote type="cite"
cite="mid:b20a8920-1984-8a14-5ec5-3964732ae36d@posys.cz">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">www.HW.cz</a> <br>
<a class="moz-txt-link-abbreviated moz-txt-link-freetext"
href="mailto:Hw-list@list.hw.cz" moz-do-not-send="true">Hw-list@list.hw.cz</a>
<br>
<a class="moz-txt-link-freetext"
href="http://list.hw.cz/mailman/listinfo/hw-list"
moz-do-not-send="true">http://list.hw.cz/mailman/listinfo/hw-list</a>
<br>
</blockquote>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
HW-list mailing list - sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>