diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2022-03-22 19:01:54 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2022-03-22 19:01:54 +0300 |
commit | 3501449dc7c7bf0ae9709f8a94872f427f07e93d (patch) | |
tree | b587e34b976c81359d1a00624a0842d24e4cf4e1 | |
parent | 3b5a484c9b99f1b80bcb4398d43519b00a02fb6b (diff) | |
download | UEFI-Lessons-3501449dc7c7bf0ae9709f8a94872f427f07e93d.tar.gz UEFI-Lessons-3501449dc7c7bf0ae9709f8a94872f427f07e93d.tar.bz2 UEFI-Lessons-3501449dc7c7bf0ae9709f8a94872f427f07e93d.zip |
Update lesson 69
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
-rw-r--r-- | Lessons/Lesson_69/README.md | 12 | ||||
-rw-r--r-- | Lessons/Lesson_69/SuppressIf_oneof1.png | bin | 6788 -> 7291 bytes | |||
-rw-r--r-- | Lessons/Lesson_69/SuppressIf_oneof2.png | bin | 7291 -> 6788 bytes | |||
-rw-r--r-- | README.md | 2 |
4 files changed, 8 insertions, 6 deletions
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 Binary files differindex 5e4dc05..21388d2 100644 --- a/Lessons/Lesson_69/SuppressIf_oneof1.png +++ b/Lessons/Lesson_69/SuppressIf_oneof1.png diff --git a/Lessons/Lesson_69/SuppressIf_oneof2.png b/Lessons/Lesson_69/SuppressIf_oneof2.png Binary files differindex 21388d2..5e4dc05 100644 --- a/Lessons/Lesson_69/SuppressIf_oneof2.png +++ b/Lessons/Lesson_69/SuppressIf_oneof2.png @@ -72,7 +72,7 @@ These series of lessons are intendend to get you started with UEFI programming i - [Lesson 66](Lessons/Lesson_66): More VFR input elements - Part 2: `string` - [Lesson 67](Lessons/Lesson_67): More VFR input elements - Part 3: `date` and `time` - [Lesson 68](Lessons/Lesson_68): More VFR input elements - Part 4: `oneof` and `orderedlist` -- [Lesson 69](Lessons/Lesson_69): Conditional keywords in VFR: `suppressif`/grayoutif`/disableif`/`warningif`/`nosubmitif`/`inconsistentif` +- [Lesson 69](Lessons/Lesson_69): Conditional keywords in VFR: `suppressif`/`grayoutif`/`disableif`/`warningif`/`nosubmitif`/`inconsistentif` _____ |