From 3501449dc7c7bf0ae9709f8a94872f427f07e93d Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Tue, 22 Mar 2022 19:01:54 +0300 Subject: Update lesson 69 Signed-off-by: Konstantin Aladyshev --- Lessons/Lesson_69/README.md | 12 +++++++----- Lessons/Lesson_69/SuppressIf_oneof1.png | Bin 6788 -> 7291 bytes Lessons/Lesson_69/SuppressIf_oneof2.png | Bin 7291 -> 6788 bytes 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'Lessons') diff --git a/Lessons/Lesson_69/README.md b/Lessons/Lesson_69/README.md index 8ad2719..189e1de 100644 --- a/Lessons/Lesson_69/README.md +++ b/Lessons/Lesson_69/README.md @@ -1,12 +1,12 @@ In this lesson we will look at several built-in VFR conditionals. -Before we go deep into this new keywords, let's look one more time at our form: +Before we go deep into these new keywords, let's look one more time at our form: ![Before](Before.png?raw=true "Before") Remember it as a reference as we would change the look of our form in this lesson. -Also each of the built-in`s in this lesson work with a conditional statement. But we want to show how the element works, so we would simply use a constant `TRUE` in the place of a conditional. +Also each of the built-in\`s in this lesson works with a conditional statement. But we want to show how the element works, so we would simply use a constant `TRUE` in the place of a conditional. # suppressif @@ -33,13 +33,15 @@ After that the form would look like this: ![SuppressIf](SuppressIf.png?raw=true "SuppressIf") +So the element simply has become invisible for the user. + One more use of `suppressif` is in the fact that you can hide options inside the question. -For example currently our `oneof` question looks like: +For example currently our `oneof` question looks like this: ![SuppressIf_oneof1](SuppressIf_oneof1.png?raw=true "SuppressIf_oneof1") -But adding `suppressif` like this: +But adding `suppressif` to the option 3: ``` oneof varid = FormData.OneOfValue, @@ -53,7 +55,7 @@ oneof endoneof; ``` -Would hide the option 3 for the user: +Would hide it for the selection: ![SuppressIf_oneof2](SuppressIf_oneof2.png?raw=true "SuppressIf_oneof2") diff --git a/Lessons/Lesson_69/SuppressIf_oneof1.png b/Lessons/Lesson_69/SuppressIf_oneof1.png index 5e4dc05..21388d2 100644 Binary files a/Lessons/Lesson_69/SuppressIf_oneof1.png and b/Lessons/Lesson_69/SuppressIf_oneof1.png differ diff --git a/Lessons/Lesson_69/SuppressIf_oneof2.png b/Lessons/Lesson_69/SuppressIf_oneof2.png index 21388d2..5e4dc05 100644 Binary files a/Lessons/Lesson_69/SuppressIf_oneof2.png and b/Lessons/Lesson_69/SuppressIf_oneof2.png differ -- cgit v1.2.3-18-g5258