check value is number in cmd
echo off &echo.&echo off
set /p pilih=silahkan masukan adb port ? &
echo off &echo.&echo off
SET /a param="%pilih%" + 0
if not %param% == 0 echo hello wordl
pause
check value is number in cmd
echo off &echo.&echo off
set /p pilih=silahkan masukan adb port ? &
echo off &echo.&echo off
SET /a param="%pilih%" + 0
if not %param% == 0 echo hello wordl
pause
check value is number in cmd
#!/bin/bash
var=a
if [ -n "$var" ] && [ "$var" -eq "$var" ] 2>/dev/null; then
echo number
else
echo not a number
fi
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us