I need the user to fill in an integer, but with the code shown beneath, also doubles are allowed. How can I change it to allow only integers?
do{
$opgegevenGetal = read-host "Enter an integer"
if(){
write-host "Only integers please"
}
}
until ([bool]($opgegevenGetal -as [int]))