PDA

View Full Version : [logics] in Include-file



Thomas Richter
01-02-2005, 10:59 AM
Hi all,
I want add some logics in the Include-File.
I create a include-file, named same as in [script].
Begin with [logics] and then the logics.
But they don`t work !! Why ??
I added also [elements] and then some elements.
And I can see them. Thats OK.
So I can see the pmscr737.txt file is working, but not with logics.
Doe`s anyone know more?
--
Best Regards
Thomas - EW321

Enrico Schiratti
01-06-2005, 01:36 PM
Hi Thomas...

> I create a include-file, named same as in [script].

ignore script for the time being please...

> So I can see the pmscr737.txt file is working, but not with logics.

the scr file is for scripts and is being worked on... the include filename
you make for yourself can have any name... e.g.

Try this:

In the main file, at the beginning (or anywhere actually) add:

include signs.txt

Then have a file called signs.txt with the following content:

[logics]
if seatbelts changed
if seatbelts then
pm4f4 = 425
else
pm4f4 = 426
endif
endif

if nosmoking changed
if nosmoking then
pm4f4 = 422
else
pm4f4 = 423
endif
endif


"Thomas Richter" wrote in message
news:280448.55736@wb.onvix.com...
> Hi all,
> I want add some logics in the Include-File.
> I create a include-file, named same as in [script].
> Begin with [logics] and then the logics.
> But they don`t work !! Why ??
> I added also [elements] and then some elements.
> And I can see them. Thats OK.
> So I can see the pmscr737.txt file is working, but not with logics.
> Doe`s anyone know more?
> --
> Best Regards
> Thomas - EW321
>