Huh.

It works if entered directly into the console, but not if run from the 
script editor.

On Tuesday, 21 January 2014 14:59:33 UTC, Stefan Karpinski wrote:
>
> I don't think the issue is with if – it's with I/O. Can you do 
> println("hello") by itself?
>
>
> On Tue, Jan 21, 2014 at 9:56 AM, Ben Simmons <[email protected]<javascript:>
> > wrote:
>
>> I've just installed Julia Studio last night to try and do some work on 
>> cellular automata.
>>
>> I've been familiarising myself with the language, and so far it's worked 
>> fine. But when I try to use the if command, I get the following error:
>>
>> ERROR: no method getindex(Array{Any,1},ASCIIString) in read_message at 
>> /Applications/JuliaStudio.app/Contents/Resources/juliet/src/modules/network/network.jl:45
>>  
>> in Message at 
>> /Applications/JuliaStudio.app/Contents/Resources/juliet/src/modules/network/network.jl:19
>>  
>> in process_incoming at 
>> /Applications/JuliaStudio.app/Contents/Resources/juliet/src/modules/network/network.jl:59
>>  
>> in anonymous at multi.jl:110
>>
>> This is when running even very simple code, such as:
>>
>> x=2
>> y=4
>> if x < y
>>   println("x is less than y")
>> elseif x > y
>>   println("x is greater than y")
>> else
>>   println("x is equal to y")
>> end
>>
>> Or
>>
>> x=2
>> if x == 2
>>   println("x is 2")
>> end
>>
>> Any ideas? I also can't get it to work in Julia (rather than Julia Studio)
>>
>
>

Reply via email to