Skip to content

Script analysis showing boolean variable as never used #5250

@RadioMan57

Description

@RadioMan57

Type: Bug

$TrainerOK = $False
$Zert | ForEach-Object -process { if ($_.MA_Nr -eq $Trainer) { $TrainerOK = $True } }

if (-not $TrainerOK) { Return }

Extension version: 2025.2.0
VS Code version: Code 1.102.2 (c306e94f98122556ca081f527b466015e1bc37b0, 2025-07-22T12:15:48.520Z)
OS version: Windows_NT x64 10.0.26100
Modes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions