bash script config file

hi all

config.sh :

dhcp="0"
setip="1"
telnet="1"
ping="1"

main.sh

function dhcp {

}

function setip {

}

function telnet {

}

.........

I have a question, If the variable is 1 in the config file,how to call it function name, variable is not set or "0" not call function.

thanks all

[ "$dhcp" -gt 0 ] && dhcp