[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Assigning results to variables
From: |
Nick Dokos |
Subject: |
Re: [O] Assigning results to variables |
Date: |
Sat, 24 Mar 2012 22:09:26 -0400 |
Neuwirth Erich <address@hidden> wrote:
> Is it possible to assign the results of a babel code block to a
> variable? Then the results produce by one language could be
> transferred as input to a code block in another language. I studied
> the documentation and could not find any hint about this.
>
Here's a very simple example:
--8<---------------cut here---------------start------------->8---
* chaining calculations
#+name: foo
#+BEGIN_SRC elisp
(+ 3 4)
#+END_SRC
#+RESULTS: foo
: 7
#+BEGIN_SRC elisp :var x=foo
(* x x)
#+END_SRC
#+RESULTS:
: 49
--8<---------------cut here---------------end--------------->8---
Nick