Quick question:
Under Define Function fn ProjInput()
{
IF(nSource = 3 ) //PC
{
sProjTxBuf = "sProjTxbuf,sProj_cmds[3]" // RGB INPUT
}
Else
{
sProjTxBuf = "sProjTxbuf,sProj_cmds[5]" // Video Input
Basically can I amend the IF line to read= 3,4)
In other words can I have it go to sProj_cmds[3] with either input ??
Thanks for the input
{
IF(nSource = 3 ) //PC
{
sProjTxBuf = "sProjTxbuf,sProj_cmds[3]" // RGB INPUT
}
Else
{
sProjTxBuf = "sProjTxbuf,sProj_cmds[5]" // Video Input
Basically can I amend the IF line to read= 3,4)
In other words can I have it go to sProj_cmds[3] with either input ??
Thanks for the input
0
Comments
Define Function fnProjInput() { if(nSource == 3 || nSource == 4) // = will work but == is a clearer meaning { //do something ; } or Define Function fnProjInput() { if(nSource > 2 && nSource < 5) { //do something ; } or Define Function fnProjInput() { SWITCH(nSource) { CASE 1: { //do something for source 1 } CASE 2: { //do something for source 2 } CASE 3: CASE 4: { //do something for source 3 or 4 } } or Define Function fn ProjInput() { SELECT { ACTIVE(nSource == 1): { //do something for source 1 } ACTIVE(nSource == 2): { //do something for source 2 } ACTIVE(nSource == 3 || nSource == 3): { //do something for source 3 or 4 } }thanks again.
Mark