<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Slic3r Conditional G-Code fail</title>
        <description> Hi
I am trying to get the following condition working:
{if [layer_num] == 0}{if [next_extruder] == 1}G1 E16 F1200
It seems that layer_num is always zero!
What can be wrong here?

Thanks in advance, Rick</description>
        <link>https://reprap.org/forum/read.php?263,895949,895949#msg-895949</link>
        <lastBuildDate>Sun, 09 Aug 2026 09:19:32 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?263,895949,895964#msg-895964</guid>
            <title>Re: Slic3r Conditional G-Code fail</title>
            <link>https://reprap.org/forum/read.php?263,895949,895964#msg-895964</link>
            <description><![CDATA[ ... it's not a proper style, but you can try with declaring it "globally" ... or search, if you find another methode to get the updates through ...]]></description>
            <dc:creator>VDX</dc:creator>
            <category>Slic3r</category>
            <pubDate>Mon, 21 Oct 2024 03:04:43 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?263,895949,895963#msg-895963</guid>
            <title>Re: Slic3r Conditional G-Code fail</title>
            <link>https://reprap.org/forum/read.php?263,895949,895963#msg-895963</link>
            <description><![CDATA[ Thank you,  [layer_num] variable not in 'Tool change G-Code' scope.]]></description>
            <dc:creator>scumari</dc:creator>
            <category>Slic3r</category>
            <pubDate>Mon, 21 Oct 2024 02:09:07 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?263,895949,895960#msg-895960</guid>
            <title>Re: Slic3r Conditional G-Code fail</title>
            <link>https://reprap.org/forum/read.php?263,895949,895960#msg-895960</link>
            <description><![CDATA[ ... check where or if [layer_num] is updated or use the correct variable, if it's different.<br />
<br />
Forgot -- is it the correct scope? otherwise you wouldn't get updates ...]]></description>
            <dc:creator>VDX</dc:creator>
            <category>Slic3r</category>
            <pubDate>Sun, 20 Oct 2024 16:55:58 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?263,895949,895949#msg-895949</guid>
            <title>Slic3r Conditional G-Code fail</title>
            <link>https://reprap.org/forum/read.php?263,895949,895949#msg-895949</link>
            <description><![CDATA[ Hi<br />
I am trying to get the following condition working:<br />
{if [layer_num] == 0}{if [next_extruder] == 1}G1 E16 F1200<br />
It seems that layer_num is always zero!<br />
What can be wrong here?<br />
<br />
Thanks in advance, Rick]]></description>
            <dc:creator>scumari</dc:creator>
            <category>Slic3r</category>
            <pubDate>Sat, 19 Oct 2024 03:21:53 -0400</pubDate>
        </item>
    </channel>
</rss>
