-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Currently I am building a route for a truck to drive inside my netlogo-land.
When the truck is next to the shop-patch where it should deliver, the truck needs to change its actions.
However my if or ifelse statement does not seem to respond well and the answer depends on the output. With some tests:
turtles…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi there,
I am trying to create a simulation of motorway and the behaviour of the drivers in NetLogo.
I have some questions that I m struggling to solve.
Here is my code:
globals
[
selected-car ;; the currently selected car
average-speed ;; average speed of all the cars
look-ahead
]
turtles-own
[
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have code like
AA <- as.integer(readline("Select any number"))
switch(AA,
1={
num <-as.integer(readline("Select any one of the options \n"))
print('You have selected option 1')
#reading user data
var <- readline("enter the variable name \n")
#aggregating…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to write an IF ELSE statement to enable shipping, If user doesn't add an address the array contents remain as "-" & "-" for the two items in the array. I want to check to see if those are in the array, if they are then I want to enableshipping.
Here is the code for getting the array:
NSArray…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
This is a very basic example of what I am trying to implement in a more complex batch file. I would like to extract a substring from an input parameter (%1) and branch based on if the substring was found or not.
@echo off
SETLOCAL enableextensions enabledelayedexpansion
SET _testvariable=%1
SET…
>>> More