Hallo,
ich habe einen array
my_array = [ "/test", "test-verlauf/", "test-bsp/" ]
Die Abfrage soll auch True ergeben wenn in Group folgende Werte stehen:
Group = "test-bsp/projekt"
Group = "sooderso/test"
Group = "test-verlauf/gruppe"
also nur Teile beinhaltet.
if my_array.include?(Group)
exit 1
end
Geht das?
Gruß
ich habe einen array
my_array = [ "/test", "test-verlauf/", "test-bsp/" ]
Die Abfrage soll auch True ergeben wenn in Group folgende Werte stehen:
Group = "test-bsp/projekt"
Group = "sooderso/test"
Group = "test-verlauf/gruppe"
also nur Teile beinhaltet.
if my_array.include?(Group)
exit 1
end
Geht das?
Gruß