$id = "geschichte"; $id2 = "geschichte"; my $textname = ""; if ($id eq $id2) { $textname = "text"; }