00:00:06:00 - 00:00:07:27
So let's go back to basics with this,
00:00:07:27 - 00:00:11:08
just in case anyone's not that familiar
with, with the if statements.
00:00:11:26 - 00:00:13:14
So we'll start off just by showing you
00:00:13:14 - 00:00:16:27
what the logic screen is,
where you would find it.
00:00:17:22 - 00:00:21:18
So if you go into your invent tab inside
InDesign,
00:00:22:23 - 00:00:25:02
go to the variables tab.
00:00:25:02 - 00:00:27:23
And then amongst these buttons
you've got at the top of the screen,
00:00:27:23 - 00:00:30:23
you've got the set up logic button.
00:00:32:17 - 00:00:35:17
That will open up a separate window
00:00:35:28 - 00:00:38:17
when my laptop cooperates.
00:00:38:17 - 00:00:40:14
So now I've got a lot
00:00:40:14 - 00:00:44:10
of, statements and rules and stuff
already set up in here.
00:00:44:10 - 00:00:48:01
You start off with something very,
very empty in here.
00:00:49:03 - 00:00:51:25
And what you say is add logic
00:00:51:25 - 00:00:54:28
that will create to you
the start of a new if statement.
00:00:55:14 - 00:00:58:14
And all you're doing is you're putting
in the name and description.
00:00:58:14 - 00:01:00:27
Just so you know what
this is actually controlling.
00:01:01:27 - 00:01:04:27
And in
a nutshell, you're creating conditions.
00:01:05:05 - 00:01:09:05
And this could be sort of
if a variable was set to a certain value.
00:01:10:02 - 00:01:13:02
So I'll just do one as an example. If
00:01:13:07 - 00:01:16:19
one of my variables
say child variable equals
00:01:17:14 - 00:01:20:14
one of the options,
that child bearing can be.
00:01:22:02 - 00:01:23:28
Then a certain action will happen.
00:01:23:28 - 00:01:27:05
And this action can be a lot of different
things as we've talked about.
00:01:27:05 - 00:01:30:06
So it can be modifying
one of the variables.
00:01:30:06 - 00:01:30:26
Again.
00:01:30:26 - 00:01:34:05
Or it can be modifying one of the fields
that are actually on your canvas.
00:01:34:11 - 00:01:37:11
There's loads of things
that you can modify that will show you.
00:01:37:18 - 00:01:40:18
So for example I could say,
00:01:43:07 - 00:01:46:07
let's say my parent variable is hidden.
00:01:46:28 - 00:01:49:18
For example.
00:01:49:18 - 00:01:52:25
Now an important thing to note when you're
actually creating these if statements,
00:01:52:25 - 00:01:57:00
especially if you're brand new to it, is
you do need to round out the statement.
00:01:57:23 - 00:02:00:17
So even if this is my critical thing here.
00:02:00:17 - 00:02:04:09
So if my child variable is set to one,
I want to hide the parent variable.
00:02:04:18 - 00:02:08:00
We also need to specify
what happens in the opposite state.
00:02:08:27 - 00:02:11:15
So at the moment
this is kind of an open ended statement.
00:02:11:15 - 00:02:15:23
It's only looking at one particular thing
and isn't covering the alternative.
00:02:16:26 - 00:02:19:08
And we do this with an else.
00:02:19:08 - 00:02:22:19
So we can say
add else at the bottom of the screen here.
00:02:22:28 - 00:02:27:04
And that's just giving us the action
if this condition is not met.
00:02:27:27 - 00:02:30:05
So basically covering all the bases,
00:02:30:05 - 00:02:33:05
it makes sure that we've covering
all potential conditions.
00:02:33:13 - 00:02:37:25
So in this case
I might say that the parent variable is
00:02:38:28 - 00:02:40:24
to be shared.
00:02:40:24 - 00:02:42:17
And that would cover everything
in our basic
00:02:42:17 - 00:02:45:17
if statement.