function call based on a variable in skill

Y

yvk

Guest
Hi,

I have two functions func1 func2.

I need to call them one of them inside another skill function based on the i/p argument variable.

If variable==1 then func1 needs to be called, if variable==2 then its func2.

how to implement this in skill?

Thanks,
yvk
 
I mean to do string processing and create the name of function wither func1/func2



On Friday, January 25, 2013 2:44:55 PM UTC+5:30, yvk wrote:
Hi,



I have two functions func1 func2.



I need to call them one of them inside another skill function based on the i/p argument variable.



If variable==1 then func1 needs to be called, if variable==2 then its func2.



how to implement this in skill?



Thanks,

yvk
 
On 01/26/13 09:38, yvk wrote:
I mean to do string processing and create the name of function wither func1/func2



On Friday, January 25, 2013 2:44:55 PM UTC+5:30, yvk wrote:
Hi,



I have two functions func1 func2.



I need to call them one of them inside another skill function based on the i/p argument variable.



If variable==1 then func1 needs to be called, if variable==2 then its func2.



how to implement this in skill?



Thanks,

yvk
Isn't this just:

case(variable
(1 func1())
(2 func2())
)

Or am I missing something?

Regards,

Andrew.
 
Oh yes thanks (I am not that god at programming)

Thanks,
yvk

On Wednesday, February 20, 2013 2:51:32 AM UTC+5:30, Andrew Beckett wrote:
On 01/26/13 09:38, yvk wrote:

I mean to do string processing and create the name of function wither func1/func2







On Friday, January 25, 2013 2:44:55 PM UTC+5:30, yvk wrote:

Hi,







I have two functions func1 func2.







I need to call them one of them inside another skill function based on the i/p argument variable.







If variable==1 then func1 needs to be called, if variable==2 then its func2.







how to implement this in skill?







Thanks,



yvk





Isn't this just:



case(variable

(1 func1())

(2 func2())

)



Or am I missing something?



Regards,



Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top