Skip to content

Commit 68ebfb0

Browse files
committed
add links
1 parent 55eec29 commit 68ebfb0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.jekyll-metadata

2.6 KB
Binary file not shown.

_docs/schema/schemagen/conditional-generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The `[If]` attribute creates a condition involving a discrete value. It takes t
6464
- `value` - This is the expected value for the property you named above. The condition will apply when the property equals this value. The value can be any compiler-constant value, but really should be JSON-compatible. So strings, numbers, and booleans are generally best. Enum values will work, too, but `[IfEnum]` may be a better option if you're using an enum property.
6565
- `group` - This is a key that identifies a group for this condition. It can be any compiler-constant value.
6666

67-
On its own, a single `[If]` attribute will create an `if` keyword containing a `const` keyword and the value you specify. However, the attribute can also be repeated with different values under the same group in order to create an `enum` keyword containing all of the values in that group. An example of the `enum` generation can be found here. (Note that this is slightly different from the [`[IfEnum]`](#ifenum-attribute) described below.)
67+
On its own, a single `[If]` attribute will create an `if` keyword containing a `const` keyword and the value you specify. However, the attribute can also be repeated with different values under the same group in order to create an `enum` keyword containing all of the values in that group. An example of the `enum` generation can be found [here](/schema/examples/multiple-ifs-one-group). (Note that this is slightly different from the [`[IfEnum]`](#ifenum-attribute) described below.)
6868

6969
#### Example {#if-example}
7070

_docs/schema/schemagen/examples/multiple-ifs-one-group.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: page
3-
title: Using Multiple [If] Attributes in a Single Group
4-
bookmark: Stacking Ifs
3+
title: Using Multiple `[If]` Attributes in a Single Group
4+
bookmark: Stacking [If]s
55
permalink: /schema/examples/:title/
66
icon: fas fa-tag
77
order: "01.5.2.5"
@@ -18,7 +18,7 @@ class CarColors
1818
}
1919
```
2020

21-
Now let's say that there is a requirement that if the exterior color is white or black, the interior needs to be gray; otherwise, the interior can be any other color.
21+
Now let's say that there is a requirement that if the exterior color is white or black, the interior needs to be gray; otherwise, the interior can be any color.
2222

2323
## The standard way
2424

0 commit comments

Comments
 (0)