Kapitel 13/Tutorial.md aktualisiert
This commit is contained in:
@@ -376,39 +376,38 @@ Im Ergebnis findest du im Feld `data[0].id` deine **User-ID** (z. B. `123456789`
|
||||
```
|
||||
### 5. Set Node – Felder übernehmen
|
||||
|
||||
|
||||
```git
|
||||
# Set Node – Felder übernehmen
|
||||
|
||||
|
||||
file_exists → json {{ JSON.parse($json.stdout).file_exists }}
|
||||
non_empty → json {{ JSON.parse($json.stdout).non_empty }}
|
||||
vods → json {{ JSON.parse($json.stdout).vods }}
|
||||
file_exists → ```json {{ JSON.parse($json.stdout).file_exists }} ```
|
||||
non_empty → ```json {{ JSON.parse($json.stdout).non_empty }} ```
|
||||
vods → ```json {{ JSON.parse($json.stdout).vods }} ```
|
||||
|
||||
|
||||
# WICHTIG
|
||||
- Stelle die Felder auf den Typ Array bzw. Boolean um.
|
||||
- Aktiviere die Option: Add Option → Ignore Type Conversion Errors → einschalten.
|
||||
```
|
||||
|
||||
|
||||
|
||||
### 6. State ermitteln (Set-Node – EIN Feld)
|
||||
|
||||
|
||||
```git
|
||||
|
||||
# State ermitteln
|
||||
|
||||
|
||||
state → {{ $json.file_exists === false
|
||||
state → ```json {{ $json.file_exists === false
|
||||
? 'CREATE_AND_DOWNLOAD'
|
||||
: ($json.non_empty === false
|
||||
? 'APPEND_AND_DOWNLOAD'
|
||||
: 'NEED_CHECK') }}
|
||||
```
|
||||
|
||||
|
||||
# WICHTIG
|
||||
- Aktiviere die Option: Include Other Input Fields → ALL.
|
||||
```
|
||||
|
||||
7. Switch-Node – drei klare Wege
|
||||
|
||||
Switch → Property Name: ```json {{ $json.state }} ```
|
||||
|
||||
Reference in New Issue
Block a user