Is it possible to add a bit of code into a specified area?
Possibly there's a find and replace sort of function? Obviously not quite find and replace, but similar.
Here's a simple example:
if (num==2 || num==3 || num==4 /*this*/)
{execute some code}
Now, you do a check to see if the number 5 needs to be added to the list, and it does. So you replace '/*this*/' with '|| num==5 /*this*/' and check if 6 needs to be added.
Would that be possible? Either that or another way to add some code into a specified area, depending on some factors.
Neowin says it's $39.99, but their site says $399.99 after discount. Is Neowin covering the difference? I'll take 7 if they are. Not 8, not 6, never 5, but 7.
Question
Fred_Xenonsoft
Is it possible to add a bit of code into a specified area?
Possibly there's a find and replace sort of function? Obviously not quite find and replace, but similar.
Here's a simple example:
if (num==2 || num==3 || num==4 /*this*/)
{execute some code}
Now, you do a check to see if the number 5 needs to be added to the list, and it does. So you replace '/*this*/' with '|| num==5 /*this*/' and check if 6 needs to be added.
Would that be possible? Either that or another way to add some code into a specified area, depending on some factors.
Link to comment
https://www.neowin.net/forum/topic/791752-javascript-question/Share on other sites
10 answers to this question
Recommended Posts