🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261401

Re: Request help with 40tude dialog program syntax

#261401
From: Rodney Pont
Date: Sat, 31 Dec 2016 20:00
28 lines
1903 bytes
On Sat, 31 Dec 2016 20:40:28 +0100, Stijn De Jong wrote:

>This pseudocode tries to explain what I'm trying to accomplish:
>if identity = id1 then  
>   Remove_Headers='User-Agent: ,Message-ID: ';
>else if identity = id2 then
>   Remove_Headers='User-Agent: ,Content-Transfer-Encoding: ';
> else
>   Remove_Headers='User-Agent: ,Mime-Version: '; 

Try;
if identity == id1 then  
   Remove_Headers='User-Agent: ,Message-ID: ';
else if identity == id2 then
   Remove_Headers='User-Agent: ,Content-Transfer-Encoding: ';
 else
   Remove_Headers='User-Agent: ,Mime-Version: '; 

= is an assignment operator, it makes the left side = to the right
side, you need the double = for a comparison.

I'm not familiar with the scripting you are using but that's worth
trying.

-- 
Faster, cheaper, quieter than HS2
and built in 5 years;
UKUltraspeed <http://www.500kmh.com/>
Technical Details
Message-ID: <nfcnzpzcvasbuvgzrhx.oj2tg71.pminews@ouse.infohit.me.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <o491jh$7jr$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <nfcnzpzcvasbuvgzrhx.oj2tg71.pminews@ouse.infohit.me.uk>
Subject: Re: Request help with 40tude dialog program syntax
Date: Sat, 31 Dec 2016 20:00:07 +0000
From: "Rodney Pont" <mlist4@infohit.me.uk>
References: <o491jh$7jr$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: alt.windows7.general,news.software.readers
Lines: 30
Reply-To: "Rodney Pont" <mlist4@infohit.me.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net i9dQYA/Xt0v6gOdaP0rJsw7q4fgKrLWdMcshtwxiRel1Perp5M
X-Orig-Path: ouse.infohit.me.uk!not-for-mail
Cancel-Lock: sha1:Wiqu7c43LlC1ZwriUg+Yrg6LE4k=
X-Newsreader: PMINews 2.00.1205 For OS/2
X-Received-Bytes: 1814
X-Received-Body-CRC: 2457087774