Question about Input Settings and Defaults

wificon

Пользователь
Регистрация
18.02.2016
Сообщения
35
Благодарностей
3
Баллы
8
I don't think i understand meaning of Defaults in Input settings.

What i want to do:

InputSettings
Boolean -> Some option - Default: False

First run:
Input settings manually set to True and saved in var: choice

if {Variable.choice} == True -> for example: download file

Second run (after first success):
InputSettings should be set to default if i haven't set it to True manually?

And another one, another one .....

I need in input Settings set variable that will be executed only by first run, and after that will change to False, and then next project runs will be running with choice:false

Some ideas ?
 

britalic

Пользователь
Регистрация
31.07.2012
Сообщения
33
Благодарностей
8
Баллы
8
look i am a newbie and I am drunk trying to find my own messages I posted, I failed and read your query, didn't understand half of it but the last line. And this is my input.
On the start and the first run I would set a variable to 2.
Then I would have a switch that your template goes through every run. Every time the template does a run, you get the variable to lose a number.

So, first time it goes through the switch it goes one way, second and any runs after that it goes through the switch it will go the other way.
This seems very obvious to me so maybe I got you wrong.... in that case I am a dancing, singing fool. < === dancing and singing fool.
 

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
Values are not saved between runs.
Whenever you start an instance all variables will be set to their default value.
You need to use global variables or communicate between the instances trough a textfile or similar.

ie: Check if file exists. If not, download it. If it does, do something else. Then 1st time it will download it and 2nd time process it.
 
  • Спасибо
Реакции: wificon

wificon

Пользователь
Регистрация
18.02.2016
Сообщения
35
Благодарностей
3
Баллы
8
As i see in ZP
Every time i run instance it runs with set manually in InputSettings value True, even if default is False
 

sMax

Client
Регистрация
04.05.2011
Сообщения
132
Благодарностей
49
Баллы
28
It works as it always has.

It only changes when you change it manually, or add the template to the poster.
Input settings are for the poster (for all executions), not for each execution.

This:
"Second run (after first success):
InputSettings should be set to default if i haven't set it to True manually? "

is an incorrect assumption.

If you want them to always start with false, you should do that in the template.
for example,
make default "" (empty) or space
if first (global or file)
---if input = "" => false;
---else input.

Hope that helps.

PS. just saw a template where I did

set False
if first (global or file)
---set input
 
Последнее редактирование:
  • Спасибо
Реакции: wificon

wificon

Пользователь
Регистрация
18.02.2016
Сообщения
35
Благодарностей
3
Баллы
8
OK, thanks for clearing this out for me.
I still have alot to learn about ZP - for me it's best software i have ever bought :-)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)